Skip to content

Commit

Permalink
[FIX] Error when loading audio source assets
Browse files Browse the repository at this point in the history
  • Loading branch information
vkalpias committed Jun 23, 2015
1 parent dfc7f38 commit 06eb438
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/framework/components/audiosource/audiosource_component.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,16 +293,16 @@ pc.extend(pc, function () {
});
} else {
// don't wait for assets that aren't in the registry
count--
count--;
if (count === 0) {
_done();
}
// but if they are added insert them into source list
assets.on("add:" + ids[index], function (asset) {
this.system.app.assets.on("add:" + ids[index], function (asset) {
asset.ready(function (asset) {
this.data.sources[asset.name] = asset.resource;
});
})
});
}
}, this);
}
Expand Down

0 comments on commit 06eb438

Please sign in to comment.