Skip to content

Commit

Permalink
release 0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrinaluo committed Aug 13, 2017
1 parent 7da2871 commit f1f60ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions dist/react-aplayer.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-aplayer",
"version": "0.1.0",
"main": "src/react-aplayer.js",
"version": "0.1.2",
"main": "dist/react-aplayer.min.js",
"author": "Sabrina Luo <[email protected]>",
"homepage": "http://sabrinaluo.github.io/react-aplayer",
"description": "A React wrapper component of APlayer",
Expand Down
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class App extends React.Component {
<h3>Normal</h3>
<ReactAplayer {...appData.apNormal} onPlay={this.playHandler} onPause={this.pauseHandler} ref={(ap) => {
const player = ap.state.control;

const methods = ['play', 'pause', 'toggle', 'volume', 'addMusic', 'destroy'];
methods.forEach(method => {
this[method] = player[method].bind(player);
Expand Down

0 comments on commit f1f60ec

Please sign in to comment.