Move the slowInSlowOut easing function into utils

This commit is contained in:
Jeremy Ruston
2012-11-08 18:34:04 +00:00
parent e0d2985ec3
commit d3e6a0cdf0
3 changed files with 6 additions and 10 deletions

View File

@@ -88,6 +88,10 @@ exports.extendDeepCopy = function(object,extendedProperties) {
return result;
};
exports.slowInSlowOut = function(t) {
return (1 - ((Math.cos(t * Math.PI) + 1) / 2));
};
exports.formatDateString = function (date,template) {
var t = template.replace(/0hh12/g,$tw.utils.pad($tw.utils.getHours12(date)));
t = t.replace(/hh12/g,$tw.utils.getHours12(date));