mirror of
https://bitbucket.org/bellord13/kit.git
synced 2026-11-13 19:06:11 +03:00
fix
This commit is contained in:
+7
-6
@@ -423,7 +423,7 @@ __PluginManager__.register('menu',function(module, exports, require) {
|
||||
|
||||
};
|
||||
Menu.prototype.reInit = function (recursiveCalcStyle = false) {
|
||||
// console.warn('Menu: reInit ' + this.id);
|
||||
console.warn('Menu: reInit ' + this.id);
|
||||
if(this.bInit === false) {
|
||||
return;
|
||||
}
|
||||
@@ -432,14 +432,15 @@ __PluginManager__.register('menu',function(module, exports, require) {
|
||||
this.removeParentEventListener();
|
||||
//this.removeDocumentEventListener();
|
||||
|
||||
this.removeAnimation();
|
||||
//this.removeAnimation();
|
||||
|
||||
this.node.remove();
|
||||
if(this.node.parentElement !== this.options.parent) {
|
||||
this.node.remove();
|
||||
this.options.parent.prepend(this.getNode());
|
||||
}
|
||||
|
||||
this.render();
|
||||
|
||||
this.options.parent.prepend(this.getNode());
|
||||
|
||||
if(this.bActive) {
|
||||
this.calcStyle(recursiveCalcStyle);
|
||||
this.showNode();
|
||||
@@ -830,7 +831,7 @@ __PluginManager__.register('menu',function(module, exports, require) {
|
||||
return Menu;
|
||||
})();
|
||||
var getInstance = function(options = {}, items = []) {
|
||||
if(options instanceof Menu) {
|
||||
if(options instanceof MenuClass) {
|
||||
return options;
|
||||
}
|
||||
if(typeof options === 'string') {
|
||||
|
||||
Reference in New Issue
Block a user