Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
chore(datepickerPopup): change to on/off
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleycho committed Nov 29, 2016
1 parent 61f365a commit 7e2f2c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/datepickerPopup/test/popup.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,15 +397,15 @@ describe('datepicker popup', function() {
it('stops the ESC key from propagating if the dropdown is open, but not when closed', function() {
var documentKey = -1;
var getKey = function(evt) { documentKey = evt.which; };
$document.bind('keydown', getKey);
$document.on('keydown', getKey);

triggerKeyDown(inputEl, 'esc');
expect(documentKey).toBe(-1);

triggerKeyDown(inputEl, 'esc');
expect(documentKey).toBe(27);

$document.unbind('keydown', getKey);
$document.off('keydown', getKey);
});
});

Expand Down

0 comments on commit 7e2f2c1

Please sign in to comment.