Adding in .bind(name, false), .unbind(name, false) support - an easy way to just stop bubbling and the default action on an element. Fixes #6188.

This commit is contained in:
jeresig 2010-02-27 09:02:13 -05:00
parent ba7195e3f9
commit a45372a4c5
3 changed files with 37 additions and 5 deletions

View file

@ -13,8 +13,8 @@ var jsc = now(),
jQuery.fn.extend({
load: function( url, params, callback ) {
if ( typeof url !== "string" ) {
return _load.call( this, url );
if ( typeof url !== "string" && _load ) {
return _load.apply( this, arguments );
// Don't do a request if no elements are being requested
} else if ( !this.length ) {