Skip to content

Commit

Permalink
Renaming key change listener parameter from event to evt.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeyes committed Jan 8, 2014
1 parent ef87580 commit e6ecf3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions baseliner/CHANGES.md
@@ -1,6 +1,10 @@
# CHANGES


## 0.9.10 – 2014-01-08

* Renamed parameter from `event` to `evt` in the keychange listener.

## 0.9.9 – 2013-11-17

* Added: gridOffset configuration option (thanks [Michael Herold](https://github.com/michaelherold))
Expand Down
4 changes: 2 additions & 2 deletions baseliner/baseliner.js
Expand Up @@ -2,7 +2,7 @@
* A function to overlay a dynamically created baseline grid
* on a webpage.
*
* @version 0.9.9
* @version 0.9.10
* @author John Keyes <john@keyes.ie>
* @copyright Copyright (c) 2011, John Keyes
* @link https://github.com/jkeyes/baseline
Expand Down Expand Up @@ -244,7 +244,7 @@ var Baseliner = function(options) {
window.onresize = function() {
baseliner.resize();
};
document.onkeyup = function(event) {
document.onkeyup = function(evt) {
if (!evt) var evt = window.event;
var keyCode = evt.keyCode || evt.which;

Expand Down

0 comments on commit e6ecf3f

Please sign in to comment.