mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 19:40:56 +08:00
fix(events): fixing IE specific issues
IE doesn't have Array#indexOf and [].splice.call doesn't work there either.
This commit is contained in:
@@ -596,7 +596,7 @@ describe('Scope', function() {
|
||||
scope.$broadcast('fooEvent', 'do', 're', 'me', 'fa');
|
||||
|
||||
expect(args.length).toBe(5);
|
||||
expect([].splice.call(args, 1)).toEqual(['do', 're', 'me', 'fa']);
|
||||
expect(sliceArgs(args, 1)).toEqual(['do', 're', 'me', 'fa']);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user