Uploaded image for project: 'Hue'
  1. Hue
  2. HUE-1929

[core] Create jHueDelayedInput plugin

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5.0
    • Fix Version/s: 3.6.0
    • Component/s: core.frontend
    • Labels:
      None

      Description

      We have this pseudo-code all over the apps:

      var timeout = -1;
      element.on("keyup", function () {
      window.clearTimeout(timeout);
      timeout = window.setTimeout(function ()

      { dostuff }

      , 300);
      });

      and it takes care of executing stuff not at every single keystroke in an input.
      time to make a one line plugin for this, like

      element.jHueDelayed(function(){
      dostuff
      });

        Attachments

          Activity

            People

            • Assignee:
              enricoberti Enrico Berti
              Reporter:
              enricoberti Enrico Berti
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: