Merge pull request #10 from rdworth/text_content_string

TextItem content: Added coersion to string in content setter since 0 numb
This commit is contained in:
Jürg Lehni 2011-07-01 02:00:26 -07:00
commit bb467462c3
3 changed files with 3 additions and 3 deletions

View file

@ -5010,7 +5010,7 @@ var TextItem = this.TextItem = Item.extend({
setContent: function(content) { setContent: function(content) {
this._changed(Change.CONTENT); this._changed(Change.CONTENT);
this._content = content; this._content = '' + content;
}, },
getCharacterStyle: function() { getCharacterStyle: function() {

2
dist/paper.js vendored
View file

@ -5010,7 +5010,7 @@ var TextItem = this.TextItem = Item.extend({
setContent: function(content) { setContent: function(content) {
this._changed(Change.CONTENT); this._changed(Change.CONTENT);
this._content = content; this._content = '' + content;
}, },
getCharacterStyle: function() { getCharacterStyle: function() {

View file

@ -80,7 +80,7 @@ var TextItem = this.TextItem = Item.extend(/** @lends TextItem# */{
setContent: function(content) { setContent: function(content) {
this._changed(Change.CONTENT); this._changed(Change.CONTENT);
this._content = content; this._content = '' + content;
}, },
/** /**