sure! good idea. ----- Original Message ---- From: Jörn Zaefferer <[EMAIL PROTECTED]> To: jquery-en@googlegroups.com Sent: Thursday, April 5, 2007 5:14:45 PM Subject: [jQuery] Re: response handler scope
Ariel Jakobovits schrieb: > I have edited my jquery.js file to look like this: > > // If a local callback was specified, fire it and pass it the data > if ( s.success ) { > if ( s.scope ) { > s.success.call( s.scope , data , status ); > } > else { > s.success( data, status ); > } > } > How about... if ( s.success ) s.success.call( s.scope || window, data, status); -- Jörn Zaefferer http://bassistance.de