X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fmkws-widget-builder.js;h=6468e869f54903903abf67a77a8a23d1a0e02906;hb=f46b615e92b693ca8bea0eb3fb0fab65c4fbf46e;hp=1d5ea8d374d3c5d5438e5f4ac182cf3ce3ee6ebd;hpb=00825721bfeb53e7771b70fc112a96eaee2038e0;p=mkws-moved-to-github.git
diff --git a/src/mkws-widget-builder.js b/src/mkws-widget-builder.js
index 1d5ea8d..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 = mkws.$('', {
+ var button = mkws.$('', {
type: 'button',
text: this.config.text || "Build!"
});
- this.jqnode.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();