|
@@ -77,18 +77,12 @@ TimerNode.prototype.copy = function ( source ) {
|
|
|
|
|
|
TimerNode.prototype.toJSON = function ( meta ) {
|
|
TimerNode.prototype.toJSON = function ( meta ) {
|
|
|
|
|
|
- var data = this.getJSONNode( meta );
|
|
|
|
|
|
+ var data = FloatNode.prototype.toJSON.call( this, meta );
|
|
|
|
|
|
- if ( ! data ) {
|
|
|
|
|
|
+ data.scope = this.scope;
|
|
|
|
+ data.scale = this.scale;
|
|
|
|
|
|
- data = this.createJSONNode( meta );
|
|
|
|
-
|
|
|
|
- data.scope = this.scope;
|
|
|
|
- data.scale = this.scale;
|
|
|
|
-
|
|
|
|
- data.timeScale = this.timeScale;
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
|
|
+ data.timeScale = this.timeScale;
|
|
|
|
|
|
return data;
|
|
return data;
|
|
|
|
|