Permalink
Browse files

supports jquery 1.7.2

  • Loading branch information...
1 parent 276f186 commit 424707ee3aad714f45d0500b926b6329b6ebf58b @mhayes committed Jul 31, 2012
Showing with 14 additions and 9 deletions.
  1. +2 −2 index.html
  2. +4 −0 jquery-1.7.2.min.js
  3. +8 −7 jquery.raptorize.1.0.js
View
@@ -5,8 +5,8 @@
<title>Title This Page :)</title>
<!-- jQuery: Grab Google CDN jQuery. fall back to local if necessary -->
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
- <script>!window.jQuery && document.write('<script src="jquery-1.4.1.min.js"><\/script>')</script>
+ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
+ <script>!window.jQuery && document.write('<script src="jquery-1.7.2.min.js"><\/script>')</script>
<!-- The raptorize file -->
<script src="jquery.raptorize.1.0.js"></script>
View
@@ -89,14 +89,15 @@
}
})
} else if(options.enterOn == 'konami-code'){
+
var kkeys = [], konami = "38,38,40,40,37,39,37,39,66,65";
- $(window).bind("keydown.raptorz", function(e){
- kkeys.push( e.keyCode );
- if ( kkeys.toString().indexOf( konami ) >= 0 ) {
- init();
- $(window).unbind('keydown.raptorz');
- }
- }, true);
+ $(document).keydown(function(e) {
+ kkeys.push( e.keyCode );
+ if ( kkeys.toString().indexOf( konami ) >= 0 ){
+ $(document).unbind('keydown',arguments.callee);
+ init();
+ }
+ });
}

0 comments on commit 424707e

Please sign in to comment.