vendor/assets/javascripts/greensock/plugins/EaselPlugin.js in greensock-rails-1.11.6.0 vs vendor/assets/javascripts/greensock/plugins/EaselPlugin.js in greensock-rails-1.11.7.0

- old
+ new

@@ -1,8 +1,8 @@ /*! - * VERSION: beta 0.1.5 - * DATE: 2013-08-29 + * VERSION: 0.1.6 + * DATE: 2014-04-08 * 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. @@ -226,10 +226,11 @@ window._gsDefine.plugin({ propName: "easel", priority: -1, + version: "0.1.6", API: 2, //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, value, tween) { this._target = target; @@ -275,10 +276,10 @@ min = 0.000001, val; while (pt) { val = pt.c * v + pt.s; if (pt.r) { - val = (val + ((val > 0) ? 0.5 : -0.5)) >> 0; //about 4x faster than Math.round() + val = Math.round(val); } else if (val < min && val > -min) { val = 0; } if (pt.f) { pt.t[pt.p](val); \ No newline at end of file