1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-02 16:43:00 +00:00

Fix animation behaviour of reveal widget

This commit is contained in:
Jeremy Ruston
2013-11-02 09:21:11 +00:00
parent 73ca33d82d
commit 31ae8910c6
2 changed files with 12 additions and 5 deletions

View File

@@ -27,10 +27,15 @@ Animator.prototype.perform = function(type,domNode,options) {
chosenAnimation = animation[type];
}
});
// Call the animation
if(chosenAnimation) {
chosenAnimation(domNode,options);
if(!chosenAnimation) {
chosenAnimation = function(domNode,options) {
if(options.callback) {
options.callback();
}
};
}
// Call the animation
chosenAnimation(domNode,options);
};
exports.Animator = Animator;