aboutsummaryrefslogtreecommitdiffstats
path: root/src/jqLite.js
diff options
context:
space:
mode:
authorVojta Jina2011-07-08 13:16:51 +0200
committerIgor Minar2011-07-12 23:04:46 -0700
commitce80576e0b8ac9ed5a5b1f1a4dbc2446434a0002 (patch)
tree0ffa65d9f7bdbf6d04c93c1509c25e3465613a78 /src/jqLite.js
parent10da625ed93511dbf5d4e61ca4e42f6f2d478959 (diff)
downloadangular.js-ce80576e0b8ac9ed5a5b1f1a4dbc2446434a0002.tar.bz2
fix:jqLite: Set event.target on IE<8
IE<8's Event has not target property - it has srcElement property. Fix that to be consistent as jQuery.
Diffstat (limited to 'src/jqLite.js')
-rw-r--r--src/jqLite.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jqLite.js b/src/jqLite.js
index a2dc02cd..d4948f22 100644
--- a/src/jqLite.js
+++ b/src/jqLite.js
@@ -369,6 +369,9 @@ forEach({
event.cancelBubble = true; //ie
};
}
+ if (!event.target) {
+ event.target = event.srcElement || document;
+ }
forEach(eventHandler.fns, function(fn){
fn.call(element, event);
});