Author: jmorliaguet
Date: Tue May 16 21:43:58 2006
New Revision: 3148

Modified:
   cpsskins/branches/paris-sprint-2006/lib/cpsskins/src/cpsskins.js

Log:

- removed hardcoded scheduler precision



Modified: cpsskins/branches/paris-sprint-2006/lib/cpsskins/src/cpsskins.js
==============================================================================
--- cpsskins/branches/paris-sprint-2006/lib/cpsskins/src/cpsskins.js    
(original)
+++ cpsskins/branches/paris-sprint-2006/lib/cpsskins/src/cpsskins.js    Tue May 
16 21:43:58 2006
@@ -938,7 +938,7 @@
       if (highlight && this._dropzones) {
         this._dropzones.each(function(el) {
           CPSSkins.Effects.activate(el,
-            {'duration': highlight.duration || 1000}
+            {duration: highlight.duration || 1000, precision: 50}
           );
         });
       }
@@ -1347,6 +1347,7 @@
     this.duration = options.duration || 300;
     this.action = options.action || function(value) {};
     this.onComplete = options.onComplete || function() {};
+    this.precision = options.precision || 25;
 
     this.started = false;
     this.start();
@@ -1354,7 +1355,7 @@
 
   start: function() {
     this.startTime = (new Date).getTime();
-    this.timer = setInterval(this.step.bind(this), 20);
+    this.timer = setInterval(this.step.bind(this), this.precision);
    },
 
   step: function() {
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to