vendor/assets/javascripts/greensock/plugins/BezierPlugin.js in greensock-rails-1.12.1.0 vs vendor/assets/javascripts/greensock/plugins/BezierPlugin.js in greensock-rails-1.13.1.0
- old
+ new
@@ -1,17 +1,18 @@
/*!
- * VERSION: beta 1.3.2
- * DATE: 2014-04-08
+ * VERSION: beta 1.3.3
+ * DATE: 2014-07-17
* UPDATES AND DOCS AT: http://www.greensock.com
*
* @license Copyright (c) 2008-2014, GreenSock. All rights reserved.
* This work is subject to the terms at http://www.greensock.com/terms_of_use.html or for
* Club GreenSock members, the software agreement that was issued with your membership.
*
* @author: Jack Doyle, jack@greensock.com
**/
-(window._gsQueue || (window._gsQueue = [])).push( function() {
+var _gsScope = (typeof(module) !== "undefined" && module.exports && typeof(global) !== "undefined") ? global : this || window; //helps ensure compatibility with AMD/RequireJS and CommonJS/Node
+(_gsScope._gsQueue || (_gsScope._gsQueue = [])).push( function() {
"use strict";
var _RAD2DEG = 180 / Math.PI,
_r1 = [],
@@ -301,14 +302,14 @@
return {length:total, lengths:lengths, segments:segments};
},
- BezierPlugin = window._gsDefine.plugin({
+ BezierPlugin = _gsScope._gsDefine.plugin({
propName: "bezier",
priority: -1,
- version: "1.3.2",
+ version: "1.3.3",
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) {
@@ -496,11 +497,11 @@
BezierPlugin.quadraticToCubic = function(a, b, c) {
return new Segment(a, (2 * b + a) / 3, (2 * b + c) / 3, c);
};
BezierPlugin._cssRegister = function() {
- var CSSPlugin = window._gsDefine.globals.CSSPlugin;
+ var CSSPlugin = _gsScope._gsDefine.globals.CSSPlugin;
if (!CSSPlugin) {
return;
}
var _internals = CSSPlugin._internals,
_parseToProxy = _internals._parseToProxy,
@@ -575,6 +576,20 @@
}
}
return this._super._kill.call(this, lookup);
};
-}); if (window._gsDefine) { window._gsQueue.pop()(); }
\ No newline at end of file
+}); if (_gsScope._gsDefine) { _gsScope._gsQueue.pop()(); }
+
+//export to AMD/RequireJS and CommonJS/Node (precursor to full modular build system coming at a later date)
+(function(name) {
+ "use strict";
+ var getGlobal = function() {
+ return (_gsScope.GreenSockGlobals || _gsScope)[name];
+ };
+ if (typeof(define) === "function" && define.amd) { //AMD
+ define(["TweenLite"], getGlobal);
+ } else if (typeof(module) !== "undefined" && module.exports) { //node
+ require("../TweenLite.js");
+ module.exports = getGlobal();
+ }
+}("BezierPlugin"));