Rename the widget function to makeWidget
authorMike Taylor <mike@indexdata.com>
Wed, 8 Oct 2014 10:25:40 +0000 (11:25 +0100)
committerMike Taylor <mike@indexdata.com>
Wed, 8 Oct 2014 10:25:40 +0000 (11:25 +0100)
src/mkws-core.js
src/mkws-widget.js

index eba71fd..b5c4cde 100644 (file)
@@ -466,7 +466,7 @@ mkws.log("Using window.name '" + window.name + "'");
         }
 
         var oldHTML = this.innerHTML;
         }
 
         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) {
         myTeam.addWidget(myWidget);
         var newHTML = this.innerHTML;
         if (newHTML !== oldHTML) {
index d57620b..d968743 100644 (file)
@@ -1,5 +1,5 @@
 // Factory function for widget objects.
 // 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,
   // 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,