Skip to content

Commit

Permalink
Minor changes of jqKeyboard namespace
Browse files Browse the repository at this point in the history
Now the global variable is not overwritten meaning that the lib and layout load order doesn't affect the workflow.
  • Loading branch information
hAWKdv committed Dec 12, 2015
1 parent c5332f2 commit 1e2686b
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion buildno.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"build": 122
"build": 123
}
4 changes: 1 addition & 3 deletions demos/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@
$balloon.addClass("shrink");
}, 500);

//setTimeout(function () {
$infoTxt.delay(1000).fadeIn();
//}, 1000);
$infoTxt.delay(1000).fadeIn();

$(this).click(function () {
$("#button-hint").fadeOut();
Expand Down
12 changes: 6 additions & 6 deletions development/built/jqkeyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
* @version v1.0.0
* @link https://github.com/hAWKdv/jqKeyboard#readme
* @license MIT
* @build 122
* @build 123
*/
/* globals -jqKeyboard */
var jqKeyboard = (function($) {
var jqKeyboard = jqKeyboard || {};

(function(jqKeyboard, $) {
"use strict";

// CONSTANTS
Expand Down Expand Up @@ -647,7 +649,5 @@ Core = {
};


return {
init: Core.init
};
}(jQuery));
jqKeyboard.init = Core.init;
}(jqKeyboard, jQuery));
2 changes: 1 addition & 1 deletion development/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<link rel="stylesheet" href="css/jqkeyboard.css" />
<script type="text/javascript" src="libs/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="libs/jquery-ui/jquery-ui.min.js"></script>
<script type="text/javascript" src="built/jqkeyboard.js"></script>
<script type="text/javascript" src="../layouts/jqk.layout.en-bg.js"></script>
<script type="text/javascript" src="built/jqkeyboard.js"></script>
<script type="text/javascript">
$(function () {
"use strict";
Expand Down
10 changes: 5 additions & 5 deletions development/modules/_main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
var jqKeyboard = (function($) {
var jqKeyboard = jqKeyboard || {};

(function(jqKeyboard, $) {
"use strict";

// CONSTANTS
Expand Down Expand Up @@ -30,7 +32,5 @@ var jqKeyboard = (function($) {

//<%= contents %>

return {
init: Core.init
};
}(jQuery));
jqKeyboard.init = Core.init;
}(jqKeyboard, jQuery));
2 changes: 2 additions & 0 deletions layouts/jqk.layout.en-bg.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/* English - Bulgarian */
var jqKeyboard = jqKeyboard || {};

jqKeyboard.layouts = [{
lang: "en",
layout: ["`|~ 1|! 2|@ 3|# 4|$ 5|% 6|^ 7|& 8|* 9|( 0|) -|_ =|+ <<backspace>>",
Expand Down
2 changes: 2 additions & 0 deletions layouts/jqk.layout.en.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/* English */
var jqKeyboard = jqKeyboard || {};

jqKeyboard.layouts = [{
lang: "en",
layout: ["`|~ 1|! 2|@ 3|# 4|$ 5|% 6|^ 7|& 8|* 9|( 0|) -|_ =|+ <<backspace>>",
Expand Down

0 comments on commit 1e2686b

Please sign in to comment.