Comparing version 0.3.12 to 0.3.13
{ | ||
"name": "tina", | ||
"version": "0.3.12", | ||
"version": "0.3.13", | ||
"description": "Tweening and INterpolations for Animation", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -98,2 +98,6 @@ | ||
update: function () { | ||
if (this._running === false) { | ||
return; | ||
} | ||
var now = clock.now() - this._startTime; | ||
@@ -213,3 +217,2 @@ var dt = now - this._time; | ||
if (this._running === false) { | ||
console.warn('[TINA.pause] TINA is not running'); | ||
return false; | ||
@@ -224,13 +227,7 @@ } | ||
pause: function () { | ||
if (this._stopAutomaticUpdate() === false) { | ||
return; | ||
} | ||
for (var handle = this._activeTweeners.first; handle !== null; handle = handle.next) { | ||
handle.object._pause(); | ||
} | ||
this._running = false; | ||
if (this._onPause !== null) { | ||
this._onPause(); | ||
} | ||
return this; | ||
@@ -240,5 +237,4 @@ }, | ||
resume: function () { | ||
if (this._startAutomaticUpdate() === false) { | ||
return; | ||
} | ||
this._running = true; | ||
this._startTime = clock.now() - this._time; | ||
@@ -249,6 +245,2 @@ if (this._onResume !== null) { | ||
for (var handle = this._activeTweeners.first; handle !== null; handle = handle.next) { | ||
handle.object._resume(); | ||
} | ||
return this; | ||
@@ -255,0 +247,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
770780
8398