Sha256: 3505bb14299a8d6e0d58d581e11e9324299c1cd3de141e9f6eb6f8af7db06d6a
Contents?: true
Size: 522 Bytes
Versions: 1
Compression:
Stored size: 522 Bytes
Contents
import { default as EmberObject, computed } from "@ember/object"; export default EmberObject.extend({ isNew: false, value: "", valueBuffer: "", error: null, saving: false, init() { this._super(...arguments); this.set("valueBuffer", this.get("value")); }, updateValue(newValue) { this.setProperties({ value: newValue, valueBuffer: newValue }); }, hasBuffer: computed("value", "valueBuffer", function() { return this.get("value") !== this.get("valueBuffer"); }) });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
logster-2.2.0 | client-app/app/models/pattern-item.js |