Skip to content

Commit

Permalink
Bump v1.1.2. Fix keydown func.
Browse files Browse the repository at this point in the history
  • Loading branch information
vsn4ik committed Aug 26, 2014
1 parent 1557851 commit 6a367e3
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 19 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap-submenu",
"version": "1.1.1",
"version": "1.1.2",
"authors": [
"vsn4ik"
],
Expand Down
2 changes: 1 addition & 1 deletion dist/css/bootstrap-submenu.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Bootstrap-submenu v1.1.1 (http://vsn4ik.github.io/bootstrap-submenu)
* Bootstrap-submenu v1.1.2 (http://vsn4ik.github.io/bootstrap-submenu)
* Copyright 2014 vsn4ik
* Licensed under MIT (https://github.com/vsn4ik/bootstrap-submenu/blob/master/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/css/bootstrap-submenu.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions dist/js/bootstrap-submenu.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Bootstrap-submenu v1.1.1 (http://vsn4ik.github.io/bootstrap-submenu)
* Bootstrap-submenu v1.1.2 (http://vsn4ik.github.io/bootstrap-submenu)
* Copyright 2014 vsn4ik
* Licensed under MIT (https://github.com/vsn4ik/bootstrap-submenu/blob/master/LICENSE)
*/
Expand All @@ -21,12 +21,15 @@ if (typeof jQuery === 'undefined') {

Submenupicker.prototype = {
init: function() {
this.$element.on('click.bs.dropdown', this.toggle.bind(this));
this.$element.on('click.bs.dropdown', this.click.bind(this));
this.$menu.keydown(this.keydown.bind(this));
},
toggle: function(event) {
click: function(event) {
event.stopPropagation();

this.toggle();
},
toggle: function() {
var isActive = this.$menu.hasClass('open');

this.$submenus.removeClass('open');
Expand Down
4 changes: 2 additions & 2 deletions dist/js/bootstrap-submenu.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion docs/_includes/header.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!-- Fix Mozilla Firefox warning. -->
<!-- Jekyll don't add charset to "content-type" header -->
<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{{ site.description }}">
<meta name="keywords" content="bootstrap submenu">
Expand All @@ -13,5 +17,5 @@

<script src="//code.jquery.com/jquery-2.1.1.min.js" defer></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" defer></script>
<script src="./dist/js/bootstrap-submenu.min.js" defer></script>
<script src="./dist/js/bootstrap-submenu.js" defer></script>
<script src="./assets/js/index.js" defer></script>
2 changes: 1 addition & 1 deletion docs/dist/css/bootstrap-submenu.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Bootstrap-submenu v1.1.1 (http://vsn4ik.github.io/bootstrap-submenu)
* Bootstrap-submenu v1.1.2 (http://vsn4ik.github.io/bootstrap-submenu)
* Copyright 2014 vsn4ik
* Licensed under MIT (https://github.com/vsn4ik/bootstrap-submenu/blob/master/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion docs/dist/css/bootstrap-submenu.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions docs/dist/js/bootstrap-submenu.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Bootstrap-submenu v1.1.1 (http://vsn4ik.github.io/bootstrap-submenu)
* Bootstrap-submenu v1.1.2 (http://vsn4ik.github.io/bootstrap-submenu)
* Copyright 2014 vsn4ik
* Licensed under MIT (https://github.com/vsn4ik/bootstrap-submenu/blob/master/LICENSE)
*/
Expand All @@ -21,12 +21,15 @@ if (typeof jQuery === 'undefined') {

Submenupicker.prototype = {
init: function() {
this.$element.on('click.bs.dropdown', this.toggle.bind(this));
this.$element.on('click.bs.dropdown', this.click.bind(this));
this.$menu.keydown(this.keydown.bind(this));
},
toggle: function(event) {
click: function(event) {
event.stopPropagation();

this.toggle();
},
toggle: function() {
var isActive = this.$menu.hasClass('open');

this.$submenus.removeClass('open');
Expand Down
4 changes: 2 additions & 2 deletions docs/dist/js/bootstrap-submenu.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions js/bootstrap-submenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ if (typeof jQuery === 'undefined') {

Submenupicker.prototype = {
init: function() {
this.$element.on('click.bs.dropdown', this.toggle.bind(this));
this.$element.on('click.bs.dropdown', this.click.bind(this));
this.$menu.keydown(this.keydown.bind(this));
},
toggle: function(event) {
click: function(event) {
event.stopPropagation();

this.toggle();
},
toggle: function() {
var isActive = this.$menu.hasClass('open');

this.$submenus.removeClass('open');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap-submenu",
"version": "1.1.1",
"version": "1.1.2",
"description": "Bootstrap Sub-Menus",
"keywords": [
"bootstrap",
Expand Down

0 comments on commit 6a367e3

Please sign in to comment.