From 2af86eca507526e70f862bda03bb38170573d564 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 22 Apr 2016 18:05:51 +0800 Subject: [PATCH] README: npm --save --- README.md | 4 ++-- src/APlayer.js | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index a83b3a0..19d4a3e 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Screenshot ## Install ``` -$ npm install aplayer +$ npm install aplayer --save ``` ## CDN @@ -197,4 +197,4 @@ $ npm run build ## LICENSE -MIT © [DIYgod](http://github.com/DIYgod) \ No newline at end of file +MIT © [DIYgod](http://github.com/DIYgod) diff --git a/src/APlayer.js b/src/APlayer.js index 71863b6..f338658 100644 --- a/src/APlayer.js +++ b/src/APlayer.js @@ -1,13 +1,13 @@ -/** - * APlayer constructor function - * - * @param {Object} option - See README - * @constructor - */ (() => { let APlayers = []; class APlayer { + /** + * APlayer constructor function + * + * @param {Object} option - See README + * @constructor + */ constructor(option) { this.isMobile = navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(android)|(webOS)/i);