From: Dmitry Baranovskiy Date: Mon, 7 Sep 2009 02:12:52 +0000 (+1000) Subject: Return pop method for the set. X-Git-Tag: semver~33 X-Git-Url: http://git.roojs.org/?p=raphael;a=commitdiff_plain;h=bc2d056f92691bae5524f7c174e00d3862913602 Return pop method for the set. --- diff --git a/raphael.js b/raphael.js index 6cf9d5e..ef50bc7 100644 --- a/raphael.js +++ b/raphael.js @@ -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 () {