diff options
| author | Vojta Jina | 2011-07-08 13:16:51 +0200 |
|---|---|---|
| committer | Igor Minar | 2011-07-12 23:04:46 -0700 |
| commit | ce80576e0b8ac9ed5a5b1f1a4dbc2446434a0002 (patch) | |
| tree | 0ffa65d9f7bdbf6d04c93c1509c25e3465613a78 /src/jqLite.js | |
| parent | 10da625ed93511dbf5d4e61ca4e42f6f2d478959 (diff) | |
| download | angular.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.js | 3 |
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); }); |
