Return pop method for the set.
authorDmitry Baranovskiy <dbaranovskiy@Fresh-Air.sydney.atlassian.com>
Mon, 7 Sep 2009 02:12:52 +0000 (12:12 +1000)
committerDmitry Baranovskiy <dbaranovskiy@Fresh-Air.sydney.atlassian.com>
Mon, 7 Sep 2009 02:12:52 +0000 (12:12 +1000)
raphael.js

index 6cf9d5e..ef50bc7 100644 (file)
@@ -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 () {