Show
Ignore:
Timestamp:
12/25/07 02:02:00 (5 years ago)
Author:
secondlife
Message:

lang/javascript/jstweener/trunk/src/JSTweener.js: append frameRate option

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/jstweener/trunk/src/JSTweener.js

    r308 r3546  
    2929var JSTweener = { 
    3030    looping: false, 
     31    frameRate: 60, 
    3132    objects: [], 
    3233    defaultOptions: { 
     
    166167        if (this.objects.length > 0) { 
    167168            var self = this; 
    168             setTimeout(function() { self.eventLoop() }, 10); 
     169            setTimeout(function() { self.eventLoop() }, 1000/self.frameRate); 
    169170        } else { 
    170171            this.looping = false;