projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
143a409
)
Make (vacuous) widget objects.
author
Mike Taylor
<mike@indexdata.com>
Thu, 27 Feb 2014 10:53:27 +0000
(10:53 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Thu, 27 Feb 2014 10:53:27 +0000
(10:53 +0000)
tools/htdocs/mkws.js
patch
|
blob
|
history
diff --git
a/tools/htdocs/mkws.js
b/tools/htdocs/mkws.js
index
c739684
..
3c273eb
100644
(file)
--- a/
tools/htdocs/mkws.js
+++ b/
tools/htdocs/mkws.js
@@
-148,6
+148,19
@@
if (mkws_config == null || typeof mkws_config != 'object') {
}
}
+// Factory function for widget objects.
+function widget($, team, node) {
+ var that = {
+ team: team,
+ node: node
+ };
+
+ // ### More to do here, surely
+
+ return that;
+}
+
+
// Factory function for team objects. As much as possible, this uses
// only member variables (prefixed "m_") and inner functions with
// private scope. Some functions are visibl as member-functions to be
// Factory function for team objects. As much as possible, this uses
// only member variables (prefixed "m_") and inner functions with
// private scope. Some functions are visibl as member-functions to be
@@
-1411,6
+1424,8
@@
function team($, teamName) {
mkws.teams[tname] = team(j, tname);
debug("Made MKWS team '" + tname + "'");
}
mkws.teams[tname] = team(j, tname);
debug("Made MKWS team '" + tname + "'");
}
+ var myTeam = mkws.teams[tname]
+ var myWidget = widget(j, myTeam, node)
});
});
var now = $.now();
});
});
var now = $.now();