Using manager.isLocked instead of removed checkTouchLocked method for stop method

This commit is contained in:
Pavle Goloskokovic 2018-01-17 19:13:47 +01:00
parent 5c0c89022e
commit 4b6287c4cd

View file

@ -97,7 +97,7 @@ var HTML5AudioSound = new Class({
return true;
},
stop: function () {
if (this.checkTouchLocked('method', 'stop')) {
if (this.manager.isLocked(this, 'stop')) {
return false;
}
if (!BaseSound.prototype.stop.call(this)) {