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:
84491c5
)
Add widget.value function
author
Mike Taylor
<mike@indexdata.com>
Wed, 16 Apr 2014 14:08:41 +0000
(15:08 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Wed, 16 Apr 2014 14:08:41 +0000
(15:08 +0100)
src/mkws-widgets.js
patch
|
blob
|
history
diff --git
a/src/mkws-widgets.js
b/src/mkws-widgets.js
index
3901f67
..
9f6c418
100644
(file)
--- a/
src/mkws-widgets.js
+++ b/
src/mkws-widgets.js
@@
-22,6
+22,10
@@
function widget($, team, type, node) {
return '[Widget ' + team.name() + ':' + type + ']';
};
+ that.value = function() {
+ return node.value;
+ }
+
for (var i = 0; i < node.attributes.length; i++) {
var a = node.attributes[i];
if (a.name === 'data-mkws-config') {