|
|
|
@ -467,6 +467,15 @@ module.exports = Backbone.Model.extend({ |
|
|
|
return device && width && !preview ? `(${condition}: ${width})` : ''; |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* Return the count of changes made to the content and not yet stored. |
|
|
|
* This count resets at any `store()` |
|
|
|
* @return {number} |
|
|
|
*/ |
|
|
|
getDirtyCount() { |
|
|
|
return this.get('changesCount'); |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* Set/get data from the HTMLElement |
|
|
|
* @param {HTMLElement} el |
|
|
|
|