1
0
mirror of synced 2025-12-09 07:08:17 +08:00

Dev: Expose Tool class

This commit is contained in:
surunzi
2017-11-19 16:02:16 +08:00
parent 53af31ced6
commit 3b6f7b8e0e
5 changed files with 24 additions and 16 deletions

View File

@@ -58,7 +58,6 @@
eruda.add({name: 'test'});
eruda.add(function (eruda)
{
console.log(eruda);
return {
name: 'test2',
init: function ($el)
@@ -68,6 +67,15 @@
}
};
});
var Tool = eruda.Tool;
eruda.add(new (Tool.extend({
name: 'test3',
init: function ($el)
{
this.callSuper(Tool, 'init', arguments);
this._$el.html('This is another new plugin');
}
})));
});
addClickEvent('issue29', function ()
{