Commit bc2d056f by Dmitry Baranovskiy

Return pop method for the set.

parent 90bf132b
......@@ -2571,6 +2571,10 @@ window.Raphael = (function () {
}
return this;
};
Set.prototype.pop = function () {
delete this[this.length--];
return this.items.pop();
};
for (var method in Element.prototype) {
Set.prototype[method] = (function (methodname) {
return function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment