mirror of
https://github.com/photonstorm/phaser
synced 2025-02-18 15:08:31 +00:00
Added destroy method that calls BaseSound destroy method
This commit is contained in:
parent
5980180659
commit
2bf8358d3e
1 changed files with 5 additions and 1 deletions
|
@ -2,6 +2,7 @@ var Class = require('../../utils/Class');
|
|||
var EventEmitter = require('eventemitter3');
|
||||
var Extend = require('../utils/object/Extend');
|
||||
var NOOP = require('../../utils/NOOP');
|
||||
var BaseSound = require('../BaseSound');
|
||||
var NoAudioSound = new Class({
|
||||
Extends: EventEmitter,
|
||||
initialize: function NoAudioSound(manager, key, config) {
|
||||
|
@ -54,6 +55,9 @@ var NoAudioSound = new Class({
|
|||
stop: function () {
|
||||
return false;
|
||||
},
|
||||
update: NOOP
|
||||
update: NOOP,
|
||||
destroy: function () {
|
||||
BaseSound.prototype.destroy.call(this);
|
||||
}
|
||||
});
|
||||
module.exports = NoAudioSound;
|
||||
|
|
Loading…
Add table
Reference in a new issue