From f9a645b74a9d07ca99973840ee0ceeb07b3c4a83 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 8 Oct 2014 11:25:40 +0100 Subject: [PATCH] Rename the widget function to makeWidget --- src/mkws-core.js | 2 +- src/mkws-widget.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mkws-core.js b/src/mkws-core.js index eba71fd..b5c4cde 100644 --- a/src/mkws-core.js +++ b/src/mkws-core.js @@ -466,7 +466,7 @@ mkws.log("Using window.name '" + window.name + "'"); } var oldHTML = this.innerHTML; - var myWidget = widget($, myTeam, type, this); + var myWidget = makeWidget($, myTeam, type, this); myTeam.addWidget(myWidget); var newHTML = this.innerHTML; if (newHTML !== oldHTML) { diff --git a/src/mkws-widget.js b/src/mkws-widget.js index d57620b..d968743 100644 --- a/src/mkws-widget.js +++ b/src/mkws-widget.js @@ -1,5 +1,5 @@ // Factory function for widget objects. -function widget($, team, type, node) { +function makeWidget($, team, type, node) { // Static register of attributes that do not contribute to config var ignoreAttrs = { id:1, 'class':1, style:1, name:1, action:1, type:1, size:1, -- 1.7.10.4