From 18fcfd828e71b607cc2f2369eab6b991de1a7817 Mon Sep 17 00:00:00 2001 From: Albert Vilella Date: Tue, 2 Aug 2022 09:26:33 +0100 Subject: [PATCH] Update pline.js comment out is array which skips sorting of plugins alphabetically --- pline.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pline.js b/pline.js index 7a2baf1..c943994 100644 --- a/pline.js +++ b/pline.js @@ -266,7 +266,7 @@ var Pline = { //btn=menu launcher DOM element; items=array[{title:str,click:func}]; arr=menu pointer direction ('top'|'bottom') makeMenu: function(btn, items, arr){ if(!arr) arr = 'top'; - if(!Array.isArray(items)){ + // if(!Array.isArray(items)){ items = []; var plugins = Object.keys(Pline.plugins).sort(); plugins.forEach( function(pname){ //default menu: the plugins list @@ -278,7 +278,7 @@ var Pline = { click: function(){ plugin.draw(); } }); }); - } + // } //build the menu var ul = $('