vendor/assets/javascripts/greensock/plugins/BezierPlugin.js in greensock-rails-1.18.4.0 vs vendor/assets/javascripts/greensock/plugins/BezierPlugin.js in greensock-rails-1.18.5.0
- old
+ new
@@ -1,8 +1,8 @@
/*!
- * VERSION: beta 1.3.5
- * DATE: 2016-04-19
+ * VERSION: 1.3.6
+ * DATE: 2016-05-24
* UPDATES AND DOCS AT: http://greensock.com
*
* @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
* This work is subject to the terms at http://greensock.com/standard-license or for
* Club GreenSock members, the software agreement that was issued with your membership.
@@ -19,10 +19,16 @@
_r2 = [],
_r3 = [],
_corProps = {},
_globals = _gsScope._gsDefine.globals,
Segment = function(a, b, c, d) {
+ if (c === d) { //if c and d match, the final autoRotate value could lock at -90 degrees, so differentiate them slightly.
+ c = d - (d - b) / 1000000;
+ }
+ if (a === b) { //if a and b match, the starting autoRotate value could lock at -90 degrees, so differentiate them slightly.
+ b = a + (c - a) / 1000000;
+ }
this.a = a;
this.b = b;
this.c = c;
this.d = d;
this.da = d - a;
@@ -306,11 +312,11 @@
BezierPlugin = _gsScope._gsDefine.plugin({
propName: "bezier",
priority: -1,
- version: "1.3.5",
+ version: "1.3.6",
API: 2,
global:true,
//gets called when the tween renders for the first time. This is where initial values should be recorded and any setup routines should run.
init: function(target, vars, tween) {
@@ -543,10 +549,11 @@
if (v.autoRotate) {
if (!cssp._transform) {
cssp._enableTransforms(false);
}
data.autoRotate = cssp._target._gsTransform;
+ data.proxy.rotation = data.autoRotate.rotation || 0;
}
plugin._onInitTween(data.proxy, v, cssp._tween);
return pt;
}});
};
@@ -586,10 +593,10 @@
"use strict";
var getGlobal = function() {
return (_gsScope.GreenSockGlobals || _gsScope)[name];
};
if (typeof(define) === "function" && define.amd) { //AMD
- define(["TweenLite"], getGlobal);
+ define(["../TweenLite"], getGlobal);
} else if (typeof(module) !== "undefined" && module.exports) { //node
require("../TweenLite.js");
module.exports = getGlobal();
}
}("BezierPlugin"));