mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 12:05:46 +08:00
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.
This commit is contained in:
@@ -352,6 +352,15 @@ describe('jqLite', function(){
|
||||
expect(callback).toHaveBeenCalled();
|
||||
expect(callback.callCount).toBe(1);
|
||||
});
|
||||
|
||||
it('should set event.target on IE', function() {
|
||||
var elm = jqLite(a);
|
||||
elm.bind('click', function(event) {
|
||||
expect(event.target).toBe(a);
|
||||
});
|
||||
|
||||
browserTrigger(a, 'click');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user