0
|
1 //>>excludeStart("exclude", pragmas.exclude);
|
|
2 define([ "shoestring" ], function(){
|
|
3 //>>excludeEnd("exclude");
|
|
4
|
|
5 /**
|
|
6 * Removes elements from the current set.
|
|
7 *
|
|
8 * @param {string} selector The selector to use when removing the elements.
|
|
9 * @return shoestring
|
|
10 * @this shoestring
|
|
11 */
|
|
12 shoestring.fn.not = function( selector ){
|
|
13 var ret = [];
|
|
14
|
|
15 this.each(function(){
|
|
16 var found = shoestring( selector, this.parentNode );
|
|
17
|
|
18 if( shoestring.inArray(this, found) === -1 ){
|
|
19 ret.push( this );
|
|
20 }
|
|
21 });
|
|
22
|
|
23 return shoestring( ret );
|
|
24 };
|
|
25
|
|
26 //>>excludeStart("exclude", pragmas.exclude);
|
|
27 });
|
|
28 //>>excludeEnd("exclude");
|