Author: scottbw
Date: Thu Jan 28 16:41:49 2010
New Revision: 904151
URL: http://svn.apache.org/viewvc?rev=904151&view=rev
Log:
Implemented the submitValue(key, value) method as defined in the Google Wave
Gadgets spec
Modified:
incubator/wookie/trunk/WebContent/shared/js/wave.js
Modified: incubator/wookie/trunk/WebContent/shared/js/wave.js
URL:
http://svn.apache.org/viewvc/incubator/wookie/trunk/WebContent/shared/js/wave.js?rev=904151&r1=904150&r2=904151&view=diff
==============================================================================
--- incubator/wookie/trunk/WebContent/shared/js/wave.js (original)
+++ incubator/wookie/trunk/WebContent/shared/js/wave.js Thu Jan 28 16:41:49 2010
@@ -47,6 +47,12 @@
wave.submitDelta(delta);
}
+ this.submitValue = function(key,value){
+ var delta = {};
+ delta[key] = value;
+ wave.submitDelta(delta);
+ }
+
this.toString = function(){
var str = "";
for (key in state.map){