mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
@@ -241,12 +241,20 @@ JS.mixin(LoadingItems.prototype, CallbacksInvoker.prototype, {
|
||||
* @param {String} url
|
||||
*/
|
||||
removeItem: function (url) {
|
||||
if (this.completed[url]) {
|
||||
delete this.completed[url];
|
||||
delete this.map[url];
|
||||
this.completedCount--;
|
||||
this.totalCount--;
|
||||
var item = this.map[url];
|
||||
if (!item) return;
|
||||
|
||||
if (!this.completed[item.alias || url]) return;
|
||||
|
||||
delete this.completed[url];
|
||||
delete this.map[url];
|
||||
if (item.alias) {
|
||||
delete this.completed[item.alias];
|
||||
delete this.map[item.alias];
|
||||
}
|
||||
|
||||
this.completedCount--;
|
||||
this.totalCount--;
|
||||
},
|
||||
|
||||
complete: function (url) {
|
||||
|
||||
@@ -747,7 +747,7 @@ else {
|
||||
// check Web Audio's context
|
||||
var supportWebAudio = !!(window.AudioContext || window.webkitAudioContext || window.mozAudioContext);
|
||||
|
||||
__audioSupport = { ONLY_ONE: true, WEB_AUDIO: supportWebAudio, DELAY_CREATE_CTX: false };
|
||||
__audioSupport = { ONLY_ONE: false, WEB_AUDIO: supportWebAudio, DELAY_CREATE_CTX: false };
|
||||
|
||||
if (sys.browserType === sys.BROWSER_TYPE_FIREFOX) {
|
||||
__audioSupport.DELAY_CREATE_CTX = true;
|
||||
|
||||
Reference in New Issue
Block a user