mirror of
https://bitbucket.org/bellord13/kit.git
synced 2026-11-13 19:06:11 +03:00
fix
This commit is contained in:
@@ -100,7 +100,7 @@ kit.PluginManager.register('Viewer', function(module, exports, require, global)
|
||||
|
||||
this.__aminationTrapHide = new AnimationTrap(this.node, function (options) {
|
||||
if(options.onHideBefore !== false) {
|
||||
this.onHideBefore.eachCall(window, options);
|
||||
this.onHideBefore.eachCall(this.node, options);
|
||||
}
|
||||
removeAnimation.call(this, this.animShowClass);
|
||||
addAnimation.call(this, this.animHideClass);
|
||||
@@ -111,14 +111,14 @@ kit.PluginManager.register('Viewer', function(module, exports, require, global)
|
||||
this.node.classList.add('hide');
|
||||
this.node.classList.remove('show');
|
||||
if(options.onHide !== false) {
|
||||
this.onHide.eachCall(window, options);
|
||||
this.onHide.eachCall(this.node, options);
|
||||
}
|
||||
this.node.style.display = 'none';
|
||||
}.bind(this));
|
||||
|
||||
this.__aminationTrapShow = new AnimationTrap(this.node, function (options = {}) {
|
||||
if(options.onShowBefore !== false) {
|
||||
this.onShowBefore.eachCall(window, options);
|
||||
this.onShowBefore.eachCall(this.node, options);
|
||||
}
|
||||
this.node.classList.remove('hide');
|
||||
this.node.classList.add('show');
|
||||
@@ -132,7 +132,7 @@ kit.PluginManager.register('Viewer', function(module, exports, require, global)
|
||||
removeAnimation.call(this, this.animHideClass);
|
||||
addAnimation.call(this, this.animShowClass);
|
||||
if(options.onShow !== false) {
|
||||
this.onShow.eachCall(window, options);
|
||||
this.onShow.eachCall(this.node, options);
|
||||
}
|
||||
}.bind(this), function (options = {}) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user