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:
a24738a
)
Add widget-level debug() function.
author
Mike Taylor
<mike@indexdata.com>
Tue, 25 Mar 2014 11:18:33 +0000
(11:18 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Tue, 25 Mar 2014 11:18:33 +0000
(11:18 +0000)
tools/htdocs/mkws.js
patch
|
blob
|
history
diff --git
a/tools/htdocs/mkws.js
b/tools/htdocs/mkws.js
index
43c4d78
..
fc50e13
100644
(file)
--- a/
tools/htdocs/mkws.js
+++ b/
tools/htdocs/mkws.js
@@
-172,14
+172,18
@@
function widget($, team, type, node) {
var promote = type2fn[type];
if (promote) {
promote();
var promote = type2fn[type];
if (promote) {
promote();
- team.debug("made " + type + " widget(node=" + node + ")");
+ debug("made " + type + " widget(node=" + node + ")");
} else {
} else {
- team.debug("made UNENCAPSULATED widget(type=" + type + ", node=" + node + ")");
+ debug("made UNENCAPSULATED widget(type=" + type + ", node=" + node + ")");
}
return that;
}
return that;
+ function debug(s) {
+ team.debug(s);
+ }
+
// Functions follow for promoting the regular widget object into
// widgets of specific types. These could be moved outside of the
// widget object, or even into their own source files.
// Functions follow for promoting the regular widget object into
// widgets of specific types. These could be moved outside of the
// widget object, or even into their own source files.