Skip to content

Commit

Permalink
Made TNumber nonparametric and moved range/units to NumberProperty, see
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Sep 11, 2017
1 parent fc2d1cf commit 12735e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/nodes/TNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ define( function( require ) {

setOpacity: {
returnType: TVoid,
parameterTypes: [ TNumber() ],
parameterTypes: [ TNumber ],
implementation: function( opacity ) {
this.instance.opacity = opacity;
},
Expand All @@ -112,7 +112,7 @@ define( function( require ) {

setRotation: {
returnType: TVoid,
parameterTypes: [ TNumber() ],
parameterTypes: [ TNumber ],
implementation: function( rotation ) {
this.instance.rotation = rotation;
},
Expand Down
4 changes: 2 additions & 2 deletions js/nodes/TText.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ define( function( require ) {

setMaxWidth: {
returnType: TVoid,
parameterTypes: [ TNumber() ],
parameterTypes: [ TNumber ],
implementation: function( maxWidth ) {
this.instance.setMaxWidth( maxWidth );
},
Expand All @@ -100,7 +100,7 @@ define( function( require ) {
},

getMaxWidth: {
returnType: TNumber(),
returnType: TNumber,
parameterTypes: [],
implementation: function() {
return this.instance.maxWidth;
Expand Down

0 comments on commit 12735e8

Please sign in to comment.