Permalink
Browse files

jshint

  • Loading branch information...
1 parent de3139c commit 26bc4f8420fb3a2f4099a72bd27efea201c25186 @jish committed Mar 1, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 contra.js
View
@@ -20,7 +20,7 @@
Contra.win();
position = 0;
}
- }
+ };
Contra.win = function() {
var body = document.getElementsByTagName('body')[0];
@@ -29,19 +29,19 @@
for(var i = 0, l = handlers.length; i<l; i++) {
handlers[i].call();
}
- }
+ };
Contra.initialize = function() {
if (document.addEventListener) {
document.addEventListener('keyup', Contra.check);
- } else if(document.attachEvent) {
+ } else if (document.attachEvent) {
document.attachEvent('onkeypress', Contra.check);
- }
- }
+ }
+ };
Contra.addHandler = function(handler) {
handlers.push(handler);
- }
+ };
Contra.initialize();

0 comments on commit 26bc4f8

Please sign in to comment.