Sha256: 95996998f38c25d4eaac2414ffcf6e4808702b84e562ee87327607094809c115
Contents?: true
Size: 474 Bytes
Versions: 18
Compression:
Stored size: 474 Bytes
Contents
export const dirtyableMixin = Base => class extends Base { get originalValue() { return this._originalValue; } set originalValue(value) { this._originalValue = value; } get dirtyable() { if (!this.element) { return false; } return this.element.hasAttribute('data-dirtyable'); } isDirty() { // Implement in extending classes. throw new Error('Implement isDirty()'); } };
Version data entries
18 entries across 18 versions & 2 rubygems