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) {
|
Menu.prototype.reInit = function (recursiveCalcStyle = false) {
|
||||||
// console.warn('Menu: reInit ' + this.id);
|
console.warn('Menu: reInit ' + this.id);
|
||||||
if(this.bInit === false) {
|
if(this.bInit === false) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -432,14 +432,15 @@ __PluginManager__.register('menu',function(module, exports, require) {
|
|||||||
this.removeParentEventListener();
|
this.removeParentEventListener();
|
||||||
//this.removeDocumentEventListener();
|
//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.render();
|
||||||
|
|
||||||
this.options.parent.prepend(this.getNode());
|
|
||||||
|
|
||||||
if(this.bActive) {
|
if(this.bActive) {
|
||||||
this.calcStyle(recursiveCalcStyle);
|
this.calcStyle(recursiveCalcStyle);
|
||||||
this.showNode();
|
this.showNode();
|
||||||
@@ -830,7 +831,7 @@ __PluginManager__.register('menu',function(module, exports, require) {
|
|||||||
return Menu;
|
return Menu;
|
||||||
})();
|
})();
|
||||||
var getInstance = function(options = {}, items = []) {
|
var getInstance = function(options = {}, items = []) {
|
||||||
if(options instanceof Menu) {
|
if(options instanceof MenuClass) {
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
if(typeof options === 'string') {
|
if(typeof options === 'string') {
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
<div style="display: flex; flex-direction: column; align-items: center;">
|
||||||
|
|
||||||
|
<a href="menu.php">Menu</a>
|
||||||
|
<a href="templates.svg.php">templates.svg</a>
|
||||||
|
<a href="flex-kit.php">flex-kit</a>
|
||||||
|
<a href="cheatsheet.php">cheatsheet</a>
|
||||||
|
<a href="card/block.php">card/block</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
Reference in New Issue
Block a user