@@ -48,7 +48,7 @@ this.createjs = this.createjs || {};
48
48
* @protected
49
49
*/
50
50
function Loader ( loadItem ) {
51
- this . AbstractLoader_constructor ( loadItem , true , createjs . AbstractLoader . SOUND ) ;
51
+ this . AbstractLoader_constructor ( loadItem , true , createjs . Types . SOUND ) ;
52
52
53
53
/**
54
54
* A Media object used to determine if src exists and to get duration
@@ -223,9 +223,10 @@ this.createjs = this.createjs || {};
223
223
} ;
224
224
225
225
p . destroy = function ( ) {
226
- // call parent function , then release
227
- this . AbstractSoundInstance_destroy ( ) ;
226
+ // pause and release the playback resource , then call parent function
227
+ this . _playbackResource . pause ( ) ;
228
228
this . _playbackResource . release ( ) ;
229
+ this . AbstractSoundInstance_destroy ( ) ;
229
230
} ;
230
231
231
232
/**
@@ -275,7 +276,7 @@ this.createjs = this.createjs || {};
275
276
276
277
p . _handleCleanUp = function ( ) {
277
278
clearTimeout ( this . _audioSpriteTimeout ) ;
278
- this . _playbackResource . pause ( ) ; // OJR cannot use .stop as it prevents .seekTo from working
279
+ // OJR cannot use .stop as it prevents .seekTo from working
279
280
// todo consider media.release
280
281
} ;
281
282
@@ -445,11 +446,11 @@ this.createjs = this.createjs || {};
445
446
446
447
/**
447
448
* The capabilities of the plugin. This is generated via the {{#crossLink "CordovaAudioPlugin/_generateCapabilities"}}{{/crossLink}}
448
- * method. Please see the Sound {{#crossLink "Sound/getCapabilities "}}{{/crossLink}} method for an overview of all
449
+ * method. Please see the Sound {{#crossLink "Sound/capabilities:property "}}{{/crossLink}} method for an overview of all
449
450
* of the available properties.
450
451
* @property _capabilities
451
452
* @type {Object }
452
- * @protected
453
+ * @private
453
454
* @static
454
455
*/
455
456
s . _capabilities = null ;
@@ -469,11 +470,11 @@ this.createjs = this.createjs || {};
469
470
} ;
470
471
471
472
/**
472
- * Determine the capabilities of the plugin. Used internally. Please see the Sound API {{#crossLink "Sound/getCapabilities "}}{{/crossLink}}
473
+ * Determine the capabilities of the plugin. Used internally. Please see the Sound API {{#crossLink "Sound/capabilities:property "}}{{/crossLink}}
473
474
* method for an overview of plugin capabilities.
474
475
* @method _generateCapabilities
475
476
* @static
476
- * @protected
477
+ * @private
477
478
*/
478
479
s . _generateCapabilities = function ( ) {
479
480
if ( s . _capabilities != null || ! ( window . cordova || window . PhoneGap || window . phonegap ) || ! window . Media ) { return ; }
@@ -556,7 +557,7 @@ this.createjs = this.createjs || {};
556
557
* @type String
557
558
* @static
558
559
**/
559
- s . version = /*=version*/ "0.6.2 " ; // injected by build process
560
+ s . version = /*=version*/ "1.0.0 " ; // injected by build process
560
561
561
562
/**
562
563
* The build date for this release in UTC format.
@@ -565,6 +566,6 @@ this.createjs = this.createjs || {};
565
566
* @type String
566
567
* @static
567
568
**/
568
- s . buildDate = /*=date*/ "Thu, 26 Nov 2015 20:44:31 GMT" ; // injected by build process
569
+ s . buildDate = /*=date*/ "Thu, 14 Sep 2017 19:47:47 GMT" ; // injected by build process
569
570
570
571
} ) ( ) ;
0 commit comments