git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db076b0
)
jquery ajax: misc optimization for $.fn.load().
author
Ariel Flesler
<aflesler@gmail.com>
Mon, 11 Aug 2008 01:35:23 +0000
(
01:35
+0000)
committer
Ariel Flesler
<aflesler@gmail.com>
Mon, 11 Aug 2008 01:35:23 +0000
(
01:35
+0000)
src/ajax.js
patch
|
blob
|
history
diff --git
a/src/ajax.js
b/src/ajax.js
index
885c819
..
bda79b5
100644
(file)
--- a/
src/ajax.js
+++ b/
src/ajax.js
@@
-12,8
+12,6
@@
jQuery.fn.extend({
url = url.slice(0, off);
}
- callback = callback || function(){};
-
// Default to a GET request
var type = "GET";
@@
-56,7
+54,8
@@
jQuery.fn.extend({
// If not, just inject the full result
res.responseText );
- self.each( callback, [res.responseText, status, res] );
+ if( callback )
+ self.each( callback, [res.responseText, status, res] );
}
});
return this;