summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/print_preview/new/input_behavior.js
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/resources/print_preview/new/input_behavior.js')
-rw-r--r--chromium/chrome/browser/resources/print_preview/new/input_behavior.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/chromium/chrome/browser/resources/print_preview/new/input_behavior.js b/chromium/chrome/browser/resources/print_preview/new/input_behavior.js
index bd63ce05c44..e2aec6d9928 100644
--- a/chromium/chrome/browser/resources/print_preview/new/input_behavior.js
+++ b/chromium/chrome/browser/resources/print_preview/new/input_behavior.js
@@ -84,7 +84,12 @@ cr.define('print_preview_new', function() {
}
},
- /** Called to clear the timeout and update the value. */
+ // Resets the lastValue_ so that future inputs trigger a change event.
+ resetString: function() {
+ this.lastValue_ = null;
+ },
+
+ // Called to clear the timeout and update the value.
resetAndUpdate: function() {
if (this.timeout_) {
clearTimeout(this.timeout_);