mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-14 13:51:24 +00:00
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:
@@ -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));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user