Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: third_party/polymer/v0_8/components-chromium/polymer/src/micro/debouncer-extracted.js

Issue 1162563004: Upgrade to 1.0 and switch clients to dom-repeat where needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a layout import and remove the gzipped webanimation in reproduce.sh Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/polymer/v0_8/components-chromium/polymer/src/micro/debouncer-extracted.js
diff --git a/third_party/polymer/v0_8/components-chromium/polymer/src/micro/debouncer-extracted.js b/third_party/polymer/v0_8/components-chromium/polymer/src/micro/debouncer-extracted.js
deleted file mode 100644
index 6a0e1bf0205e651edb4d30676a27eacb588d6c4f..0000000000000000000000000000000000000000
--- a/third_party/polymer/v0_8/components-chromium/polymer/src/micro/debouncer-extracted.js
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
- Polymer.Base._addFeature({
-
- _setupDebouncers: function() {
- this._debouncers = {};
- },
-
- /**
- * Debounce signals.
- *
- * Call `debounce` to collapse multiple requests for a named task into
- * one invocation which is made after the wait time has elapsed with
- * no new request.
- *
- * debouncedClickAction: function(e) {
- * // will not call `processClick` more than once per 100ms
- * this.debounce('click', function() {
- * this.processClick;
- * }, 100);
- * }
- *
- * @method debounce
- * @param String {String} jobName A string to indentify the debounce job.
- * @param Function {Function} callback A function that is called (with `this` context) when the wait time elapses.
- * @param Number {Number} wait Time in milliseconds (ms) after the last signal that must elapse before invoking `callback`
- * @type Handle
- */
- debounce: function(jobName, callback, wait) {
- this._debouncers[jobName] = Polymer.Debounce.call(this,
- this._debouncers[jobName], callback, wait);
- },
-
- isDebouncerActive: function(jobName) {
- var debouncer = this._debouncers[jobName];
- return debouncer && debouncer.finish;
- },
-
- flushDebouncer: function(jobName) {
- var debouncer = this._debouncers[jobName];
- if (debouncer) {
- debouncer.complete();
- }
- }
-
- });
-

Powered by Google App Engine
This is Rietveld 408576698