X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fmkws-widget-builder.js;h=6468e869f54903903abf67a77a8a23d1a0e02906;hb=f46b615e92b693ca8bea0eb3fb0fab65c4fbf46e;hp=e90e0ad92fac0bc018e5a3f46a3ac4fff1e41d18;hpb=e9573a637dda048facb805bf2b7ca6139996eaa9;p=mkws-moved-to-github.git
diff --git a/src/mkws-widget-builder.js b/src/mkws-widget-builder.js
index e90e0ad..6468e86 100644
--- a/src/mkws-widget-builder.js
+++ b/src/mkws-widget-builder.js
@@ -2,12 +2,12 @@ mkws.registerWidgetType('Builder', function() {
var that = this;
var team = this.team;
- this.button = $('', {
+ var button = mkws.$('', {
type: 'button',
text: this.config.text || "Build!"
});
- $(this.node).append(this.button);
- this.button.click(function() {
+ this.node.append(button);
+ button.click(function() {
var query = team.widget('Query').value();
var sort = team.widget('Sort').value();
var perpage = team.widget('Perpage').value();
@@ -22,8 +22,8 @@ mkws.registerWidgetType('Builder', function() {
});
mkws.registerWidgetType('ConsoleBuilder', function() {
- mkws.promotionFunction('Builder').call(this);
+ mkws.promotionFunction('Builder').call(this);
this.callback = function(s) {
- console.log("Generated widget: " + s);
+ console.log("generated widget: " + s);
}
});