From: Mike Taylor Date: Wed, 16 Apr 2014 14:08:41 +0000 (+0100) Subject: Add widget.value function X-Git-Tag: 1.0.0~925 X-Git-Url: http://jsfdemo.indexdata.com/?a=commitdiff_plain;h=1fa8dadcde2ae039195d40477c8174f346a894b7;p=mkws-moved-to-github.git Add widget.value function --- diff --git a/src/mkws-widgets.js b/src/mkws-widgets.js index 3901f67..9f6c418 100644 --- 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') {