Add TextItem#_clone to copy over characterStyle and paragraphStyle.

This commit is contained in:
Jonathan Puckey 2011-05-20 21:33:25 +02:00
parent 2c94b4270a
commit f676cc026f

View file

@ -26,6 +26,12 @@ var TextItem = this.TextItem = Item.extend({
this.setParagraphStyle();
},
_clone: function(copy) {
copy.setCharacterStyle(this._characterStyle);
copy.setParagraphStyle(this._paragraphStyle);
return this.base(copy);
},
getCharacterStyle: function() {
return this._characterStyle;
},