Konami-JS 1.6.1 > 1.6.2

This commit is contained in:
Miraty 2021-09-15 22:12:12 +02:00
parent fb07f496bd
commit 28ccfa33c6
1 changed files with 3 additions and 3 deletions

View File

@ -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++) {