+ },
+ setProperty: function(propName, propValue) {
+ if(this.properties[propName] !== propValue) {
+ this.properties[propName] = propValue;
+ this.trigger('propertyChanged', propName, propValue);
+ }
+ }
+});
+
+var DumbDocument = function() {
+ Document.apply(this, Array.prototype.slice.call(arguments, 0));
+};
+DumbDocument.prototype = Object.create(Document.prototype);
+_.extend(DumbDocument.prototype, {
+ loadXML: function(xml) {
+ this._xml = xml;
+ this.trigger('contentSet');
+ },
+ toXML: function() {
+ return this._xml;