commit c080d81858617372ddf8db50ae9eefc4548b2e08 parent ee8f094fa985ecd449839aafcf94c40254602fb0 Author: Ryan Wolf <rwolf@borderstylo.com> Date: Mon, 10 Jan 2011 16:11:25 -0800 added .not Diffstat:
| M | windex.js | | | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/windex.js b/windex.js @@ -918,6 +918,14 @@ WindexNodes.prototype.is = function (selector) { }); }; +// See: http://api.jquery.com/not/ +WindexNodes.prototype.not = function (selector) { + var remains = this.filter(function (node) { + return !Windex.matchesSelector(node, selector); + }); + return new WindexNodes(remains, this._selector, this._context); +}; + Windex.url = { setUrl: function (url) { return new WindexUrl(url); } }; var WindexUrl = function (url) {