src/pattern/flicker.js in entityjs-0.4.2 vs src/pattern/flicker.js in entityjs-0.4.3
- old
+ new
@@ -48,24 +48,24 @@
return this.trigger('flicker:finish', o);
},
change:function(){
- //check if over
- if(this.flicker_frame == this.flicker_frames.length){
-
- if(this.flicker_loops == -1 || --this.flicker_loops >= 1){
- //loop again
+ //check if over
+ if(this.flicker_frame == this.flicker_frames.length){
- this.flicker_frame = 0;
-
- } else {
- //done flickering
-
- this.flicker_stop();
- return;
+ if(this.flicker_loops == -1 || --this.flicker_loops >= 1){
+ //loop again
+
+ this.flicker_frame = 0;
+
+ } else {
+ //done flickering
+
+ this.flicker_stop();
+ return;
+ }
}
- }
this.flicker_run();
},
run:function(){
\ No newline at end of file