-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjquery.combinators.min.js
More file actions
2 lines (2 loc) · 981 Bytes
/
jquery.combinators.min.js
File metadata and controls
2 lines (2 loc) · 981 Bytes
1
2
/*(c)2010RegBraithwaiteAndBenAlman http://creativecommons.org/licenses/MIT/*/(function($,undefined){var jq_fn=$.fn,aps=Array.prototype.slice,noop=function(){};jq_fn.T=function(fn){fn=typeof Functional!='undefined'?Functional.lambda(fn):fn;return fn.apply(this,[this].concat(aps.call(arguments,1)));};jq_fn.K=function(fn){fn=typeof Functional!='undefined'?Functional.lambda(fn):fn;fn.apply(this,[this].concat(aps.call(arguments,1)));return this;};jq_fn.ergo=function(fn,optionalUnless){var whichFn=this.length?fn:(optionalUnless?optionalUnless:noop);whichFn=typeof Functional!='undefined'?Functional.lambda(whichFn):whichFn;whichFn.apply(this,[this].concat(aps.call(arguments,1)));return this;};jq_fn.when=function(fn){fn=typeof Functional!='undefined'?Functional.lambda(fn):fn;return fn.apply(this,[this].concat(aps.call(arguments,1)))?this.filter('*'):this.filter('not(*)');};if(jq_fn.tap===undefined){jq_fn.tap=jq_fn.K;}
if(jq_fn.into===undefined){jq_fn.into=jq_fn.T;}})(jQuery);