You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by an...@apache.org on 2007/07/20 02:46:21 UTC

svn commit: r557825 - in /cocoon/branches/BRANCH_2_1_X: src/blocks/ajax/resources/org/apache/cocoon/ajax/resources/js/common.js status.xml

Author: antonio
Date: Thu Jul 19 17:46:21 2007
New Revision: 557825

URL: http://svn.apache.org/viewvc?view=rev&rev=557825
Log:

<action dev="AG" type="fix" fixes-bug="COCOON-2059" due-to="Alexander Klimetschek" due-to-email="alexander.klimetschek@mindquarry.com">
  AJAX: ajax/common.js makes use of deprecated dojo.animation.Timer
</action>

Modified:
    cocoon/branches/BRANCH_2_1_X/src/blocks/ajax/resources/org/apache/cocoon/ajax/resources/js/common.js
    cocoon/branches/BRANCH_2_1_X/status.xml

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/ajax/resources/org/apache/cocoon/ajax/resources/js/common.js
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/blocks/ajax/resources/org/apache/cocoon/ajax/resources/js/common.js?view=diff&rev=557825&r1=557824&r2=557825
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/ajax/resources/org/apache/cocoon/ajax/resources/js/common.js (original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/ajax/resources/org/apache/cocoon/ajax/resources/js/common.js Thu Jul 19 17:46:21 2007
@@ -36,7 +36,7 @@
      *        precedence. If no insertion is speficied, it default to "inside".
      */
     update: function(href, target, insertion) {
-        
+
         // If target is a string, parse it. Otherwise, assume it's an element
         if (dojo.lang.isString(target)) {
             var split = target.split("#");
@@ -47,13 +47,13 @@
                 target = dojo.byId(target);
             }
         }
-        
+
         if (dojo.lang.isString(insertion)) {
             insertion = cocoon.ajax.insertion[insertion];
         }
 
         insertion = insertion || cocoon.ajax.insertion.inside;
-        
+
         dojo.io.bind({
 		    url: href,
 		    load: function(type, data, evt){
@@ -62,23 +62,23 @@
 		    mimetype: "text/plain"
 		    // TODO: add an error-handling function
 		});
-        
+
     },
 
     /**
      */
     periodicalUpdate: function(delay, href, target, insertion) {
-        dojo.require("dojo.animation.Timer");
-        var timer = new dojo.animation.Timer(delay);
+        dojo.require("dojo.lang.timing.Timer");
+        var timer = new dojo.lang.timing.Timer(delay);
         timer.onTick = function() {
             cocoon.ajax.update(href, target, insertion);
         };
-        
+
         timer.onStart = timer.onTick;
         timer.start();
         return timer;
     },
-    
+
     // Update effects. These function can be used to set cocoon.ajax.BUHandler.highlight
     effects: {
         // highlight effects - transition the background colour

Modified: cocoon/branches/BRANCH_2_1_X/status.xml
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/status.xml?view=diff&rev=557825&r1=557824&r2=557825
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/status.xml (original)
+++ cocoon/branches/BRANCH_2_1_X/status.xml Thu Jul 19 17:46:21 2007
@@ -182,6 +182,9 @@
 
   <changes>
   <release version="2.1.11" date="TBD">
+    <action dev="AG" type="fix" fixes-bug="COCOON-2059" due-to="Alexander Klimetschek" due-to-email="alexander.klimetschek@mindquarry.com">
+      AJAX: ajax/common.js makes use of deprecated dojo.animation.Timer
+    </action>
     <action dev="AN" type="update">
       XSP block: Upgrade Eclipse compiler to version 3.1.0 to allow the use of Java5 syntax in XSPs.
       (Latest released Eclipse version is 3.2.2 but use 3.1.0 to be consistent with the version