|
|
@ -281,9 +281,9 @@ module.exports = Backbone.Model.extend({ |
|
|
return; |
|
|
return; |
|
|
} else { |
|
|
} else { |
|
|
var obj = { |
|
|
var obj = { |
|
|
"object": model, |
|
|
object: model, |
|
|
"before": beforeCache, |
|
|
before: beforeCache, |
|
|
"after": model.toJSON() |
|
|
after: model.toJSON() |
|
|
}; |
|
|
}; |
|
|
beforeCache = null; |
|
|
beforeCache = null; |
|
|
return obj; |
|
|
return obj; |
|
|
@ -305,6 +305,7 @@ module.exports = Backbone.Model.extend({ |
|
|
UndoManager.addUndoType("change:style", customUndoType); |
|
|
UndoManager.addUndoType("change:style", customUndoType); |
|
|
UndoManager.addUndoType("change:attributes", customUndoType); |
|
|
UndoManager.addUndoType("change:attributes", customUndoType); |
|
|
UndoManager.addUndoType("change:content", customUndoType); |
|
|
UndoManager.addUndoType("change:content", customUndoType); |
|
|
|
|
|
UndoManager.addUndoType("change:src", customUndoType); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -349,7 +350,7 @@ module.exports = Backbone.Model.extend({ |
|
|
this.stopListening(classes, 'add remove', this.handleUpdates); |
|
|
this.stopListening(classes, 'add remove', this.handleUpdates); |
|
|
this.listenTo(classes, 'add remove', this.handleUpdates); |
|
|
this.listenTo(classes, 'add remove', this.handleUpdates); |
|
|
|
|
|
|
|
|
var evn = 'change:style change:content change:attributes'; |
|
|
var evn = 'change:style change:content change:attributes change:src'; |
|
|
this.stopListening(model, evn, this.handleUpdates); |
|
|
this.stopListening(model, evn, this.handleUpdates); |
|
|
this.listenTo(model, evn, this.handleUpdates); |
|
|
this.listenTo(model, evn, this.handleUpdates); |
|
|
|
|
|
|
|
|
|