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

This commit is contained in:
Pavle Goloskokovic 2018-01-17 19:13:09 +01:00
parent cee22b158c
commit ce6f3400e2

View file

@ -49,7 +49,7 @@ var HTML5AudioSound = new Class({
BaseSound.call(this, manager, key, config);
},
play: function (markerName, config) {
if (this.checkTouchLocked('method', 'play', [markerName, config])) {
if (this.manager.isLocked(this, 'play', [markerName, config])) {
return false;
}
if (!BaseSound.prototype.play.call(this, markerName, config)) {