diff options
Diffstat (limited to 'client/components/forms/cachedValue.js')
-rw-r--r-- | client/components/forms/cachedValue.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/client/components/forms/cachedValue.js b/client/components/forms/cachedValue.js deleted file mode 100644 index a2898d85..00000000 --- a/client/components/forms/cachedValue.js +++ /dev/null @@ -1,22 +0,0 @@ -var emptyValue = ''; - -Mixins.CachedValue = BlazeComponent.extendComponent({ - onCreated: function() { - this._cachedValue = emptyValue; - }, - - setCache: function(value) { - this._cachedValue = value; - }, - - getCache: function(defaultValue) { - if (this._cachedValue === emptyValue) - return defaultValue || ''; - else - return this._cachedValue; - }, - - resetCache: function() { - this.setCache(''); - } -}); |