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:
127c0b8
)
Made it so that the last return value is always returned from handle() (unless one...
author
John Resig
<jeresig@gmail.com>
Tue, 28 Aug 2007 04:34:23 +0000
(
04:34
+0000)
committer
John Resig
<jeresig@gmail.com>
Tue, 28 Aug 2007 04:34:23 +0000
(
04:34
+0000)
src/event/event.js
patch
|
blob
|
history
diff --git
a/src/event/event.js
b/src/event/event.js
index
a4a99d9
..
7f0ec64
100644
(file)
--- a/
src/event/event.js
+++ b/
src/event/event.js
@@
-170,10
+170,14
@@
jQuery.event = {
args[0].handler = c[j];
args[0].data = c[j].data;
- if ( c[j].apply( this, args ) === false ) {
+ var tmp = c[j].apply( this, args );
+
+ if ( val !== false )
+ val = tmp;
+
+ if ( tmp === false ) {
event.preventDefault();
event.stopPropagation();
- val = false;
}
}