mirror of
https://github.com/photonstorm/phaser
synced 2024-12-18 00:53:42 +00:00
Improve readability with local variable
This commit is contained in:
parent
9a156ec898
commit
5c3a3ebef2
1 changed files with 3 additions and 2 deletions
|
@ -12,10 +12,11 @@ var WebAudioSpriteSound = new Class({
|
|||
*/
|
||||
this.spritemap = manager.game.cache.json.get(key).spritemap;
|
||||
for (var markerName in this.spritemap) {
|
||||
var marker = this.spritemap[markerName];
|
||||
this.addMarker({
|
||||
name: markerName,
|
||||
start: this.spritemap[markerName].start,
|
||||
duration: this.spritemap[markerName].end - this.spritemap[markerName].start,
|
||||
start: marker.start,
|
||||
duration: marker.end - marker.start,
|
||||
config: config
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue