Revert getTiddlerData() and add getTiddlerDataCached()

For backwards compatibility, we now explicitly request the cacheable
version of this method.

Fixes #1873
This commit is contained in:
Jermolene
2015-07-10 16:43:50 +01:00
parent 0c276c327b
commit 32f6d7f1b0
10 changed files with 55 additions and 23 deletions
+11
View File
@@ -171,6 +171,17 @@ exports.extendDeepCopy = function(object,extendedProperties) {
return result;
};
exports.deepFreeze = function deepFreeze(object) {
var property, key;
Object.freeze(object);
for(key in object) {
property = object[key];
if($tw.utils.hop(object,key) && (typeof property === "object") && !Object.isFrozen(property)) {
deepFreeze(property);
}
}
};
exports.slowInSlowOut = function(t) {
return (1 - ((Math.cos(t * Math.PI) + 1) / 2));
};