Konami-JS 1.6.1 > 1.6.2
This commit is contained in:
parent
fb07f496bd
commit
28ccfa33c6
|
@ -4,7 +4,7 @@
|
||||||
* :: those situations that call for multiple easter eggs!
|
* :: those situations that call for multiple easter eggs!
|
||||||
* Code: https://github.com/snaptortoise/konami-js
|
* Code: https://github.com/snaptortoise/konami-js
|
||||||
* Copyright (c) 2009 George Mandis (georgemandis.com, snaptortoise.com)
|
* Copyright (c) 2009 George Mandis (georgemandis.com, snaptortoise.com)
|
||||||
* Version: 1.6.1 (6/25/2018)
|
* Version: 1.6.2 (7/17/2018)
|
||||||
* Licensed under the MIT License (http://opensource.org/licenses/MIT)
|
* Licensed under the MIT License (http://opensource.org/licenses/MIT)
|
||||||
* Tested in: Safari 4+, Google Chrome 4+, Firefox 3+, IE7+, Mobile Safari 2.2.1+ and Android
|
* Tested in: Safari 4+, Google Chrome 4+, Firefox 3+, IE7+, Mobile Safari 2.2.1+ and Android
|
||||||
*/
|
*/
|
||||||
|
@ -84,9 +84,9 @@ var Konami = function (callback) {
|
||||||
},
|
},
|
||||||
touchendHandler: function () {
|
touchendHandler: function () {
|
||||||
konami.iphone.input.push(konami.iphone.check_direction());
|
konami.iphone.input.push(konami.iphone.check_direction());
|
||||||
|
|
||||||
if (konami.iphone.input.length > konami.iphone.keys.length) konami.iphone.input.shift();
|
if (konami.iphone.input.length > konami.iphone.keys.length) konami.iphone.input.shift();
|
||||||
|
|
||||||
if (konami.iphone.input.length === konami.iphone.keys.length) {
|
if (konami.iphone.input.length === konami.iphone.keys.length) {
|
||||||
var match = true;
|
var match = true;
|
||||||
for (var i = 0; i < konami.iphone.keys.length; i++) {
|
for (var i = 0; i < konami.iphone.keys.length; i++) {
|
||||||
|
|
Reference in New Issue