public
Description: The kick ass (non-commercial) home for musicians and their music
Homepage: http://alonetone.com
Clone URL: git://github.com/sudara/alonetone.git
Search Repo:
use generic this.behavior.instances
sudara (author)
Sat Jul 12 08:06:20 -0700 2008
commit  849d331531ed1d11ec8a5e5d054e0c478cb06bf2
tree    bdd4805fff9b384cf30aa66ca91a19b23566b6cc
parent  dbba6e3a2a0224a9a8c789ce3f6a5c21d05b08a3
...
471
472
473
474
475
476
 
 
 
477
478
479
...
544
545
546
547
 
548
549
550
551
552
 
553
554
555
...
471
472
473
 
 
 
474
475
476
477
478
479
...
544
545
546
 
547
548
549
550
551
 
552
553
554
555
0
@@ -471,9 +471,9 @@ Track = $.klass({
0
     if(this.isOpen != false) this.more.slideDown({duration:300,queue:false});
0
     
0
     // close all other detail panes except currently playing
0
- for(var track in Track.instances){
0
- if(!Track.instances[track].isPlaying() && this.element != Track.instances[track].element)
0
- Track.instances[track].closeDetails();
0
+ for(var track in this.behavior.instances){
0
+ if(!this.behavior.instances[track].isPlaying() && this.element != this.behavior.instances[track].element)
0
+ this.behavior.instances[track].closeDetails();
0
     }
0
     
0
     this.element.addClass('open');
0
@@ -544,12 +544,12 @@ Track = $.klass({
0
   
0
   startNextTrack: function(){
0
     this.pause();
0
- Track.instances[this.nextTrackIndex()].playOrResume();
0
+ this.behavior.instances[this.nextTrackIndex()].playOrResume();
0
   },
0
   
0
   nextTrackIndex : function(){
0
     // index of next Track in Track.instances
0
- var next = Track.instances.indexOf(this) + 1;
0
+ var next = this.behavior.instances.indexOf(this) + 1;
0
     // loop back to the first track
0
     if(this.behavior.instances[next] == undefined) next = 0;
0
     return next;

Comments

    No one has commented yet.