Author: shane.bryzak(a)jboss.com
Date: 2010-10-06 17:46:09 -0400 (Wed, 06 Oct 2010)
New Revision: 13800
Modified:
modules/remoting/trunk/core/src/main/resources/org/jboss/seam/remoting/remote.js
Log:
add clear() method to map implementation
Modified:
modules/remoting/trunk/core/src/main/resources/org/jboss/seam/remoting/remote.js
===================================================================
---
modules/remoting/trunk/core/src/main/resources/org/jboss/seam/remoting/remote.js 2010-10-06
14:32:50 UTC (rev 13799)
+++
modules/remoting/trunk/core/src/main/resources/org/jboss/seam/remoting/remote.js 2010-10-06
21:46:09 UTC (rev 13800)
@@ -187,6 +187,10 @@
Seam.Map = function() {
this.elements = [];
+ Seam.Map.prototype.clear = function() {
+ this.elements = [];
+ }
+
Seam.Map.prototype.size = function() {
return this.elements.length;
};
@@ -1153,4 +1157,4 @@
this.workingRefs[refId][propName] =
Seam.unmarshalValue(resultNode.firstChild,this.workingRefs);
if (cb) cb(this);
};
-};
\ No newline at end of file
+};