Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 'the' jabberwock is a d-bag plugin
// courtesy paul irish




// JABBERWOCK IS A BIG DBAG

(function($){
	var oldfind = $.fn.find;
	
	$.fn.find = function(sel){
		var ret = oldfind.call(this,sel);
		if (ret.length === 0) throw 'OMG NOTHING FOUND';
		return ret;
	}
	
})(jQuery)