From 234384d3a78da70e6070d9ad2d3a700a6203aa64 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Sun, 29 Sep 2013 17:46:15 +0100 Subject: [PATCH] Make debounce delay explicit --- html/js/melpa.js | 5 +++-- html/partials/list.html | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/html/js/melpa.js b/html/js/melpa.js index 3a141bb3..f253fd67 100644 --- a/html/js/melpa.js +++ b/html/js/melpa.js @@ -171,11 +171,12 @@ require: "ngModel", scope: { "ngModel": "=", - "debounceModel": "=" + "debounceModel": "=", + "debounceDelay": "@" }, link: function (scope, element, attrs, ngModel) { //jshint unused: false - var delay = 250; + var delay = parseInt(scope.debounceDelay, 10) || 250; var copyValue; scope.$watch(function() { return ngModel.$modelValue; diff --git a/html/partials/list.html b/html/partials/list.html index 3995d6d7..a4fdc1d3 100644 --- a/html/partials/list.html +++ b/html/partials/list.html @@ -4,7 +4,7 @@ ( downloads to date)

- +