From 41c8c43477a12b2c5775f3abf9b52d0335e7ab36 Mon Sep 17 00:00:00 2001 From: Lanny McNie Date: Thu, 1 Jun 2017 16:47:54 -0600 Subject: [PATCH] Removed the deprecated capabilities method (in favour of the getter/property) --- src/soundjs/Sound.js | 28 ------------------- .../cordovaaudio/CordovaAudioPlugin.js | 4 +-- src/soundjs/flashaudio/FlashAudioPlugin.js | 4 +-- src/soundjs/htmlaudio/HTMLAudioPlugin.js | 4 +-- src/soundjs/webaudio/WebAudioPlugin.js | 2 +- 5 files changed, 7 insertions(+), 35 deletions(-) diff --git a/src/soundjs/Sound.js b/src/soundjs/Sound.js index 8d713b38..978c479d 100644 --- a/src/soundjs/Sound.js +++ b/src/soundjs/Sound.js @@ -812,34 +812,6 @@ this.createjs = this.createjs || {}; return (s.activePlugin != null); }; - /** - * Deprecated, please use {{#crossLink "Sound/capabilities:property"}}{{/crossLink}} instead. - * - * @method getCapabilities - * @return {Object} An object containing the capabilities of the active plugin. - * @static - * @deprecated - */ - s.getCapabilities = function () { - if (s.activePlugin == null) {return null;} - return s.activePlugin._capabilities; - }; - - /** - * Deprecated, please use {{#crossLink "Sound/capabilities:property"}}{{/crossLink}} instead. - * - * @method getCapability - * @param {String} key The capability to retrieve - * @return {Number|Boolean} The value of the capability. - * @static - * @see getCapabilities - * @deprecated - */ - s.getCapability = function (key) { - if (s.activePlugin == null) {return null;} - return s.activePlugin._capabilities[key]; - }; - /** * Process manifest items from PreloadJS. This method is intended * for usage by a plugin, and not for direct interaction. diff --git a/src/soundjs/cordovaaudio/CordovaAudioPlugin.js b/src/soundjs/cordovaaudio/CordovaAudioPlugin.js index be6cbc0d..1cc883fd 100644 --- a/src/soundjs/cordovaaudio/CordovaAudioPlugin.js +++ b/src/soundjs/cordovaaudio/CordovaAudioPlugin.js @@ -89,7 +89,7 @@ this.createjs = this.createjs || {}; /** * The capabilities of the plugin. This is generated via the {{#crossLink "CordovaAudioPlugin/_generateCapabilities"}}{{/crossLink}} - * method. Please see the Sound {{#crossLink "Sound/getCapabilities"}}{{/crossLink}} method for an overview of all + * method. Please see the Sound {{#crossLink "Sound/capabilities:property"}}{{/crossLink}} method for an overview of all * of the available properties. * @property _capabilities * @type {Object} @@ -113,7 +113,7 @@ this.createjs = this.createjs || {}; }; /** - * Determine the capabilities of the plugin. Used internally. Please see the Sound API {{#crossLink "Sound/getCapabilities"}}{{/crossLink}} + * Determine the capabilities of the plugin. Used internally. Please see the Sound API {{#crossLink "Sound/capabilities:property"}}{{/crossLink}} * method for an overview of plugin capabilities. * @method _generateCapabilities * @static diff --git a/src/soundjs/flashaudio/FlashAudioPlugin.js b/src/soundjs/flashaudio/FlashAudioPlugin.js index 85582f3b..82d09cd8 100644 --- a/src/soundjs/flashaudio/FlashAudioPlugin.js +++ b/src/soundjs/flashaudio/FlashAudioPlugin.js @@ -203,7 +203,7 @@ this.createjs = this.createjs || {}; /** * The capabilities of the plugin. This is generated via the {{#crossLink "WebAudioPlugin/_generateCapabilities"}}{{/crossLink}} - * method. Please see the Sound {{#crossLink "Sound/getCapabilities"}}{{/crossLink}} method for a list of available + * method. Please see the Sound {{#crossLink "Sound/capabilities:property"}}{{/crossLink}} method for a list of available * capabilities. * @property _capabilities * @type {Object} @@ -240,7 +240,7 @@ this.createjs = this.createjs || {}; }; /** - * Determine the capabilities of the plugin. Used internally. Please see the Sound API {{#crossLink "Sound/getCapabilities"}}{{/crossLink}} + * Determine the capabilities of the plugin. Used internally. Please see the Sound API {{#crossLink "Sound/capabilities:property"}}{{/crossLink}} * method for an overview of plugin capabilities. * @method _generateCapabilities * @static diff --git a/src/soundjs/htmlaudio/HTMLAudioPlugin.js b/src/soundjs/htmlaudio/HTMLAudioPlugin.js index 14b70d01..8e134b2f 100644 --- a/src/soundjs/htmlaudio/HTMLAudioPlugin.js +++ b/src/soundjs/htmlaudio/HTMLAudioPlugin.js @@ -183,7 +183,7 @@ this.createjs = this.createjs || {}; /** * The capabilities of the plugin. This is generated via the {{#crossLink "HTMLAudioPlugin/_generateCapabilities"}}{{/crossLink}} - * method. Please see the Sound {{#crossLink "Sound/getCapabilities"}}{{/crossLink}} method for an overview of all + * method. Please see the Sound {{#crossLink "Sound/capabilities:property"}}{{/crossLink}} method for an overview of all * of the available properties. * @property _capabilities * @type {Object} @@ -207,7 +207,7 @@ this.createjs = this.createjs || {}; }; /** - * Determine the capabilities of the plugin. Used internally. Please see the Sound API {{#crossLink "Sound/getCapabilities"}}{{/crossLink}} + * Determine the capabilities of the plugin. Used internally. Please see the Sound API {{#crossLink "Sound/capabilities:property"}}{{/crossLink}} * method for an overview of plugin capabilities. * @method _generateCapabilities * @static diff --git a/src/soundjs/webaudio/WebAudioPlugin.js b/src/soundjs/webaudio/WebAudioPlugin.js index 0be2e62b..ad394a8b 100644 --- a/src/soundjs/webaudio/WebAudioPlugin.js +++ b/src/soundjs/webaudio/WebAudioPlugin.js @@ -267,7 +267,7 @@ this.createjs = this.createjs || {}; }; /** - * Determine the capabilities of the plugin. Used internally. Please see the Sound API {{#crossLink "Sound/getCapabilities"}}{{/crossLink}} + * Determine the capabilities of the plugin. Used internally. Please see the Sound API {{#crossLink "Sound/capabilities:property"}}{{/crossLink}} * method for an overview of plugin capabilities. * @method _generateCapabilities * @static