From 1fa8dadcde2ae039195d40477c8174f346a894b7 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 16 Apr 2014 15:08:41 +0100 Subject: [PATCH] Add widget.value function --- src/mkws-widgets.js | 4 ++++ 1 file changed, 4 insertions(+) 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') { -- 1.7.10.4