Jim Grandy wrote:
> [Note: this is a revision of the original changeset.]
> 
> Change change.YnPVbvuCF.txt by [EMAIL PROTECTED] 
> /Volumes/data/Users/jgrandyw/dev/svn/openlaszlo/trunk/ on 2006-06-27 
> 21:55:28 PDT
> 
> Summary: Rewrite LzTimer to use setInterval/clearInterval instead of LzIdle
> 
> Bugs Fixed:LPP-296
> 
> Technical Reviewer: max
> QA Reviewer: mamye
> Doc Reviewer:
> 
> Release Notes:LzTimer now uses the semi-standard functions setInterval and
> clearInterval, and as a result is more efficient than the previous 
> implementation,
> which was based on polling through LzIdle.
> 
> Tests:test/doubleclick.lzx, examples/mobile/clock/clock-test.lzx, smoketest
> 
> Files:
> M      test/doubleclick.lzx
> M      WEB-INF/lps/lfc/services/LzTimer.as
> 

There appears to be a bug here - 'timers' should be 'tle':

LzTimer.removeTimer = function ( d ){
     var tle = this.timerList[d];
     if (tle != null) {
         if (tle instanceof Object) {
             var id = timers.shift();
             clearInterval(id);
             if (timers.length == 0)
                 delete this.timerList[d];



-- 
Regards,
Max Carlson
OpenLaszlo.org
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to