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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user