Fix linting errors

This commit is contained in:
Jürg Lehni 2018-11-29 14:10:08 +01:00
parent 684f504930
commit e52a33b9cb

View file

@ -124,7 +124,7 @@ var Tween = Base.extend(Emitter, /** @lends Tween# */{
*/ */
initialize: function Tween(item, from, to, duration, easing, start) { initialize: function Tween(item, from, to, duration, easing, start) {
this.item = item; this.item = item;
var type = typeof easing var type = typeof easing;
var isFunction = type === 'function'; var isFunction = type === 'function';
this.type = isFunction this.type = isFunction
? type ? type
@ -229,7 +229,7 @@ var Tween = Base.extend(Emitter, /** @lends Tween# */{
this._setItemProperty(path, resolved); this._setItemProperty(path, resolved);
value = this._getItemProperty(path); value = this._getItemProperty(path);
// Clone the value if possible to prevent future changes. // Clone the value if possible to prevent future changes.
value = value.clone ? value.clone() : value value = value.clone ? value.clone() : value;
this._setItemProperty(path, current); this._setItemProperty(path, current);
} else { } else {
// We want to get the current state at the time of the call, so // We want to get the current state at the time of the call, so