mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
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:
commit
bb467462c3
3 changed files with 3 additions and 3 deletions
2
dist/docs/resources/js/paper.js
vendored
2
dist/docs/resources/js/paper.js
vendored
|
@ -5010,7 +5010,7 @@ var TextItem = this.TextItem = Item.extend({
|
|||
|
||||
setContent: function(content) {
|
||||
this._changed(Change.CONTENT);
|
||||
this._content = content;
|
||||
this._content = '' + content;
|
||||
},
|
||||
|
||||
getCharacterStyle: function() {
|
||||
|
|
2
dist/paper.js
vendored
2
dist/paper.js
vendored
|
@ -5010,7 +5010,7 @@ var TextItem = this.TextItem = Item.extend({
|
|||
|
||||
setContent: function(content) {
|
||||
this._changed(Change.CONTENT);
|
||||
this._content = content;
|
||||
this._content = '' + content;
|
||||
},
|
||||
|
||||
getCharacterStyle: function() {
|
||||
|
|
|
@ -80,7 +80,7 @@ var TextItem = this.TextItem = Item.extend(/** @lends TextItem# */{
|
|||
|
||||
setContent: function(content) {
|
||||
this._changed(Change.CONTENT);
|
||||
this._content = content;
|
||||
this._content = '' + content;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue