diff --git a/bower.json b/bower.json index 3036b32..5588df6 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "bootstrap-submenu", - "version": "1.1.2", + "version": "1.1.3", "authors": [ "vsn4ik" ], diff --git a/dist/css/bootstrap-submenu.css b/dist/css/bootstrap-submenu.css index 0a82bfb..c2a907b 100644 --- a/dist/css/bootstrap-submenu.css +++ b/dist/css/bootstrap-submenu.css @@ -1,5 +1,5 @@ /*! - * Bootstrap-submenu v1.1.2 (http://vsn4ik.github.io/bootstrap-submenu) + * Bootstrap-submenu v1.1.3 (http://vsn4ik.github.io/bootstrap-submenu) * Copyright 2014 vsn4ik * Licensed under MIT (https://github.com/vsn4ik/bootstrap-submenu/blob/master/LICENSE) */ diff --git a/dist/css/bootstrap-submenu.min.css b/dist/css/bootstrap-submenu.min.css index 636c6a5..163f17d 100644 --- a/dist/css/bootstrap-submenu.min.css +++ b/dist/css/bootstrap-submenu.min.css @@ -1,5 +1,5 @@ /*! - * Bootstrap-submenu v1.1.2 (http://vsn4ik.github.io/bootstrap-submenu) + * Bootstrap-submenu v1.1.3 (http://vsn4ik.github.io/bootstrap-submenu) * Copyright 2014 vsn4ik * Licensed under MIT (https://github.com/vsn4ik/bootstrap-submenu/blob/master/LICENSE) */ diff --git a/dist/js/bootstrap-submenu.js b/dist/js/bootstrap-submenu.js index b9bdc40..455a4c6 100644 --- a/dist/js/bootstrap-submenu.js +++ b/dist/js/bootstrap-submenu.js @@ -1,5 +1,5 @@ /*! - * Bootstrap-submenu v1.1.2 (http://vsn4ik.github.io/bootstrap-submenu) + * Bootstrap-submenu v1.1.3 (http://vsn4ik.github.io/bootstrap-submenu) * Copyright 2014 vsn4ik * Licensed under MIT (https://github.com/vsn4ik/bootstrap-submenu/blob/master/LICENSE) */ @@ -22,7 +22,7 @@ if (typeof jQuery === 'undefined') { Submenupicker.prototype = { init: function() { this.$element.on('click.bs.dropdown', this.click.bind(this)); - this.$menu.keydown(this.keydown.bind(this)); + this.$element.keydown(this.keydown.bind(this)); }, click: function(event) { event.stopPropagation(); diff --git a/dist/js/bootstrap-submenu.min.js b/dist/js/bootstrap-submenu.min.js index a8c62de..7ba536c 100644 --- a/dist/js/bootstrap-submenu.min.js +++ b/dist/js/bootstrap-submenu.min.js @@ -1,7 +1,7 @@ /*! - * Bootstrap-submenu v1.1.2 (http://vsn4ik.github.io/bootstrap-submenu) + * Bootstrap-submenu v1.1.3 (http://vsn4ik.github.io/bootstrap-submenu) * Copyright 2014 vsn4ik * Licensed under MIT (https://github.com/vsn4ik/bootstrap-submenu/blob/master/LICENSE) */ -"use strict";if("undefined"==typeof jQuery)throw new Error("Bootstrap-submenu requires jQuery");!function(a){function b(b){this.$element=a(b),this.$menu=this.$element.parent(),this.$submenus=this.$menu.parent().find(".dropdown-submenu"),this.init()}b.prototype={init:function(){this.$element.on("click.bs.dropdown",this.click.bind(this)),this.$menu.keydown(this.keydown.bind(this))},click:function(a){a.stopPropagation(),this.toggle()},toggle:function(){var a=this.$menu.hasClass("open");this.$submenus.removeClass("open"),a||this.$menu.addClass("open")},keydown:function(a){32==a.keyCode&&a.preventDefault(),/^(13|32)$/.test(a.keyCode)&&this.toggle()}},a.fn.submenupicker=function(){return this.each(function(){var c=a(this),d=c.data("bs.submenu");d||(new b(this),c.data("bs.submenu",!0))})}}(jQuery); \ No newline at end of file +"use strict";if("undefined"==typeof jQuery)throw new Error("Bootstrap-submenu requires jQuery");!function(a){function b(b){this.$element=a(b),this.$menu=this.$element.parent(),this.$submenus=this.$menu.parent().find(".dropdown-submenu"),this.init()}b.prototype={init:function(){this.$element.on("click.bs.dropdown",this.click.bind(this)),this.$element.keydown(this.keydown.bind(this))},click:function(a){a.stopPropagation(),this.toggle()},toggle:function(){var a=this.$menu.hasClass("open");this.$submenus.removeClass("open"),a||this.$menu.addClass("open")},keydown:function(a){32==a.keyCode&&a.preventDefault(),/^(13|32)$/.test(a.keyCode)&&this.toggle()}},a.fn.submenupicker=function(){return this.each(function(){var c=a(this),d=c.data("bs.submenu");d||(new b(this),c.data("bs.submenu",!0))})}}(jQuery); \ No newline at end of file diff --git a/docs/dist/css/bootstrap-submenu.css b/docs/dist/css/bootstrap-submenu.css index 0a82bfb..c2a907b 100644 --- a/docs/dist/css/bootstrap-submenu.css +++ b/docs/dist/css/bootstrap-submenu.css @@ -1,5 +1,5 @@ /*! - * Bootstrap-submenu v1.1.2 (http://vsn4ik.github.io/bootstrap-submenu) + * Bootstrap-submenu v1.1.3 (http://vsn4ik.github.io/bootstrap-submenu) * Copyright 2014 vsn4ik * Licensed under MIT (https://github.com/vsn4ik/bootstrap-submenu/blob/master/LICENSE) */ diff --git a/docs/dist/css/bootstrap-submenu.min.css b/docs/dist/css/bootstrap-submenu.min.css index 636c6a5..163f17d 100644 --- a/docs/dist/css/bootstrap-submenu.min.css +++ b/docs/dist/css/bootstrap-submenu.min.css @@ -1,5 +1,5 @@ /*! - * Bootstrap-submenu v1.1.2 (http://vsn4ik.github.io/bootstrap-submenu) + * Bootstrap-submenu v1.1.3 (http://vsn4ik.github.io/bootstrap-submenu) * Copyright 2014 vsn4ik * Licensed under MIT (https://github.com/vsn4ik/bootstrap-submenu/blob/master/LICENSE) */ diff --git a/docs/dist/js/bootstrap-submenu.js b/docs/dist/js/bootstrap-submenu.js index b9bdc40..455a4c6 100644 --- a/docs/dist/js/bootstrap-submenu.js +++ b/docs/dist/js/bootstrap-submenu.js @@ -1,5 +1,5 @@ /*! - * Bootstrap-submenu v1.1.2 (http://vsn4ik.github.io/bootstrap-submenu) + * Bootstrap-submenu v1.1.3 (http://vsn4ik.github.io/bootstrap-submenu) * Copyright 2014 vsn4ik * Licensed under MIT (https://github.com/vsn4ik/bootstrap-submenu/blob/master/LICENSE) */ @@ -22,7 +22,7 @@ if (typeof jQuery === 'undefined') { Submenupicker.prototype = { init: function() { this.$element.on('click.bs.dropdown', this.click.bind(this)); - this.$menu.keydown(this.keydown.bind(this)); + this.$element.keydown(this.keydown.bind(this)); }, click: function(event) { event.stopPropagation(); diff --git a/docs/dist/js/bootstrap-submenu.min.js b/docs/dist/js/bootstrap-submenu.min.js index a8c62de..7ba536c 100644 --- a/docs/dist/js/bootstrap-submenu.min.js +++ b/docs/dist/js/bootstrap-submenu.min.js @@ -1,7 +1,7 @@ /*! - * Bootstrap-submenu v1.1.2 (http://vsn4ik.github.io/bootstrap-submenu) + * Bootstrap-submenu v1.1.3 (http://vsn4ik.github.io/bootstrap-submenu) * Copyright 2014 vsn4ik * Licensed under MIT (https://github.com/vsn4ik/bootstrap-submenu/blob/master/LICENSE) */ -"use strict";if("undefined"==typeof jQuery)throw new Error("Bootstrap-submenu requires jQuery");!function(a){function b(b){this.$element=a(b),this.$menu=this.$element.parent(),this.$submenus=this.$menu.parent().find(".dropdown-submenu"),this.init()}b.prototype={init:function(){this.$element.on("click.bs.dropdown",this.click.bind(this)),this.$menu.keydown(this.keydown.bind(this))},click:function(a){a.stopPropagation(),this.toggle()},toggle:function(){var a=this.$menu.hasClass("open");this.$submenus.removeClass("open"),a||this.$menu.addClass("open")},keydown:function(a){32==a.keyCode&&a.preventDefault(),/^(13|32)$/.test(a.keyCode)&&this.toggle()}},a.fn.submenupicker=function(){return this.each(function(){var c=a(this),d=c.data("bs.submenu");d||(new b(this),c.data("bs.submenu",!0))})}}(jQuery); \ No newline at end of file +"use strict";if("undefined"==typeof jQuery)throw new Error("Bootstrap-submenu requires jQuery");!function(a){function b(b){this.$element=a(b),this.$menu=this.$element.parent(),this.$submenus=this.$menu.parent().find(".dropdown-submenu"),this.init()}b.prototype={init:function(){this.$element.on("click.bs.dropdown",this.click.bind(this)),this.$element.keydown(this.keydown.bind(this))},click:function(a){a.stopPropagation(),this.toggle()},toggle:function(){var a=this.$menu.hasClass("open");this.$submenus.removeClass("open"),a||this.$menu.addClass("open")},keydown:function(a){32==a.keyCode&&a.preventDefault(),/^(13|32)$/.test(a.keyCode)&&this.toggle()}},a.fn.submenupicker=function(){return this.each(function(){var c=a(this),d=c.data("bs.submenu");d||(new b(this),c.data("bs.submenu",!0))})}}(jQuery); \ No newline at end of file diff --git a/js/bootstrap-submenu.js b/js/bootstrap-submenu.js index 44677ec..c0f38e6 100644 --- a/js/bootstrap-submenu.js +++ b/js/bootstrap-submenu.js @@ -16,7 +16,7 @@ if (typeof jQuery === 'undefined') { Submenupicker.prototype = { init: function() { this.$element.on('click.bs.dropdown', this.click.bind(this)); - this.$menu.keydown(this.keydown.bind(this)); + this.$element.keydown(this.keydown.bind(this)); }, click: function(event) { event.stopPropagation(); diff --git a/package.json b/package.json index c9901db..750433e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bootstrap-submenu", - "version": "1.1.2", + "version": "1.1.3", "description": "Bootstrap Sub-Menus", "keywords": [ "bootstrap",