File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -186,26 +186,26 @@ var HTML5AudioSoundManager = new Class({
186186 document . body . removeEventListener ( 'touchmove' , detectMove ) ;
187187 document . body . removeEventListener ( 'touchend' , unlock ) ;
188188
189- var allTags = [ ] ;
189+ var lockedTags = [ ] ;
190190
191191 _this . game . cache . audio . entries . each ( function ( key , tags )
192192 {
193193 for ( var i = 0 ; i < tags . length ; i ++ )
194194 {
195- allTags . push ( tags [ i ] ) ;
195+ lockedTags . push ( tags [ i ] ) ;
196196 }
197197 return true ;
198198 } ) ;
199199
200- var lastTag = allTags [ allTags . length - 1 ] ;
200+ var lastTag = lockedTags [ lockedTags . length - 1 ] ;
201201
202202 lastTag . oncanplaythrough = function ( )
203203 {
204204 lastTag . oncanplaythrough = null ;
205205 _this . unlocked = true ;
206206 } ;
207207
208- allTags . forEach ( function ( tag )
208+ lockedTags . forEach ( function ( tag )
209209 {
210210 tag . load ( ) ;
211211 } ) ;
You can’t perform that action at this time.
0 commit comments