From bc2d056f92691bae5524f7c174e00d3862913602 Mon Sep 17 00:00:00 2001 From: Dmitry Baranovskiy Date: Mon, 7 Sep 2009 12:12:52 +1000 Subject: [PATCH] Return pop method for the set. --- raphael.js | 4 ++++ 1 file changed, 4 insertions(+) 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 () { -- 2.39.2