Cocoon
  1. Cocoon
  2. COCOON-2059

ajax/common.js makes use of deprecated dojo.animation.Timer

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.11, 2.2
    • Fix Version/s: 2.1.11, 2.2
    • Component/s: Blocks: Ajax
    • Labels:
      None
    • Other Info:
      Patch available

      Description

      Following code uses deprecated stuff from dojo 0.4.1:

          periodicalUpdate: function(delay, href, target, insertion) {
              dojo.require("dojo.animation.Timer");
              var timer = new dojo.animation.Timer(delay);
              timer.onTick = function() {
              ....

      Dojo in debug mode says: DEPRECATED: dojo.animation.Timer is now dojo.lang.timing.Timer 0.5

      To fix that, one should simply use:

          periodicalUpdate: function(delay, href, target, insertion) {
              dojo.require("dojo.lang.timing.Timer");
              var timer = new dojo.lang.timing.Timer(delay);

        Activity

          People

          • Assignee:
            Grzegorz Kossakowski
            Reporter:
            Alexander Klimetschek
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development