Skip to content

Commit

Permalink
add clear() method to map implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
sbryzak committed Oct 6, 2010
1 parent 7a54fa0 commit 9072ec6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/src/main/resources/org/jboss/seam/remoting/remote.js
Expand Up @@ -187,6 +187,10 @@ Seam.equals = function(v1, v2) {
Seam.Map = function() {
this.elements = [];

Seam.Map.prototype.clear = function() {
this.elements = [];
}

Seam.Map.prototype.size = function() {
return this.elements.length;
};
Expand Down Expand Up @@ -1153,4 +1157,4 @@ Seam.Model = function() {
this.workingRefs[refId][propName] = Seam.unmarshalValue(resultNode.firstChild,this.workingRefs);
if (cb) cb(this);
};
};
};

0 comments on commit 9072ec6

Please sign in to comment.