1 (function($){$(function(){
7 this.$element = element;
11 this.items.unshift(item);
15 $("div", this.$element).remove();
18 showButton(item, text, cls) {
20 btn.addClass('zakladka-tool');
23 btn.on('click', item.action);
24 this.$element.append(btn);
28 // We should open at a *marker*.
29 // And it's the marker that should know its context.
33 $.each(this.items, (i, item) => {
42 $.pbox = new PBox($('#zakladka-box')); // TODO: rename id