Skip to content

Commit

Permalink
bugfix renaming classnames
Browse files Browse the repository at this point in the history
  • Loading branch information
FrDH committed Jun 5, 2014
1 parent 4634254 commit 73584b4
Show file tree
Hide file tree
Showing 21 changed files with 84 additions and 72 deletions.
55 changes: 29 additions & 26 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
{
"name": "jQuery.mmenu",
"main": "src/js/jquery.mmenu.min.js",
"version": "4.3.0",
"homepage": "http://mmenu.frebsite.nl/",
"authors": [
"Fred Heusschen <[email protected]>"
],
"description": "A jQuery plugin that creates slick app look-alike sliding menus for your (mobile) website with horizontal or vertical submenus. It's easy to customize and has options for headers, labels, counters, a searchfield and more.",
"keywords": [
"mmenu",
"menu",
"navigation",
"mobile",
"panels",
"app"
],
"ignore": [
".jshintrc",
"Guardfile",
"index.html",
"*.json",
"README.md"
],
"dependencies": {
"jquery": ">= 1.7.0"
}
"name": "jQuery.mmenu",
"main": "src/js/jquery.mmenu.min.js",
"version": "4.3.1",
"homepage": "http://mmenu.frebsite.nl/",
"authors": [
"Fred Heusschen <[email protected]>"
],
"description": "The best jQuery plugin for app look-alike on- and off-canvas menus with sliding submenus for your website and webapp.",
"keywords": [
"mmenu",
"menu",
"submenu",
"navigation",
"on-canvas",
"off-canvas",
"mobile",
"panels",
"app"
],
"ignore": [
".jshintrc",
"Guardfile",
"index.html",
"*.json",
"README.md"
],
"dependencies": {
"jquery": ">= 1.7.0"
}
}
15 changes: 13 additions & 2 deletions mmenu.jquery.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
{
"name": "mmenu",
"version": "4.3.0",
"version": "4.3.1",
"title": "jQuery mmenu",
"description": "A jQuery plugin that creates slick app look-alike sliding menus for your (mobile) website with horizontal or vertical submenus. It's easy to customize and has options for headers, labels, counters, a searchfield and more.",
"description": "The best jQuery plugin for app look-alike on- and off-canvas menus with sliding submenus for your website and webapp.",
"keywords": [
"mmenu",
"menu",
"submenu",
"navigation",
"on-canvas",
"off-canvas",
"mobile",
"panels",
"app"
],
"homepage": "http://mmenu.frebsite.nl",
"author": {
"name": "Fred Heusschen",
Expand Down
4 changes: 2 additions & 2 deletions src/js/addons/jquery.mmenu.counters.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@


// Refactor counter class
this.__refactorClass( $('em.' + this.conf.classNames[ _ADDON_ ].counter, this.$menu), 'counter' );
this.__refactorClass( $('em', this.$menu), this.conf.classNames[ _ADDON_ ].counter, 'counter' );


// Add the counters
Expand Down Expand Up @@ -134,7 +134,7 @@
// DEPRECATED
if ( o.count )
{
$[ _PLUGIN_ ].deprecated( 'the option "count" for counters, the option "update"' );
$[ _PLUGIN_ ].deprecated( 'the option "count" for counters', 'the option "update"' );
o.update = o.count;
}
// /DEPRECATED
Expand Down
2 changes: 1 addition & 1 deletion src/js/addons/jquery.mmenu.counters.min.js

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

6 changes: 1 addition & 5 deletions src/js/addons/jquery.mmenu.dragopen.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
$[ _PLUGIN_ ].defaults[ _ADDON_ ] = {
open : false,
// pageNode : null,
// maxStartPos : null,
maxStartPos : 100,
threshold : 50
};
$[ _PLUGIN_ ].configuration[ _ADDON_ ] = {
Expand Down Expand Up @@ -272,10 +272,6 @@
{
o = {};
}
if ( typeof o.maxStartPos != 'number' )
{
o.maxStartPos = 100;
}
o = $.extend( true, {}, $[ _PLUGIN_ ].defaults[ _ADDON_ ], o );

return o;
Expand Down
2 changes: 1 addition & 1 deletion src/js/addons/jquery.mmenu.dragopen.min.js

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

2 changes: 1 addition & 1 deletion src/js/addons/jquery.mmenu.labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
{

// Refactor collapsed class
this.__refactorClass( $('li.' + this.conf.classNames[ _ADDON_ ].collapsed, this.$menu), 'collapsed' );
this.__refactorClass( $('li', this.$menu), this.conf.classNames[ _ADDON_ ].collapsed, 'collapsed' );

$('.' + _c.label, this.$menu)
.each(
Expand Down
2 changes: 1 addition & 1 deletion src/js/addons/jquery.mmenu.labels.min.js

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

2 changes: 1 addition & 1 deletion src/js/addons/jquery.mmenu.toggles.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@


// Refactor toggle class
this.__refactorClass( $('input.' + this.conf.classNames[ _ADDON_ ].toggle, this.$menu), 'toggle' );
this.__refactorClass( $('input', this.$menu), this.conf.classNames[ _ADDON_ ].toggle, 'toggle' );

// Add markup
$('.' + _c.toggle, this.$menu)
Expand Down
2 changes: 1 addition & 1 deletion src/js/addons/jquery.mmenu.toggles.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
* Copyright (c) Fred Heusschen
* www.frebsite.nl
*/
!function(t){function n(t){return t}function s(t){return t}function e(){g=!0,o=t[r]._c,i=t[r]._d,a=t[r]._e,o.add("toggle"),l=t[r].glbl}var o,i,a,l,r="mmenu",d="toggles",g=!1;t[r].prototype["_addon_"+d]=function(){g||e(),this.opts[d]=n(this.opts[d]),this.conf[d]=s(this.conf[d]);var i=this;this.opts[d],this.conf[d],this.__refactorClass(t("input."+this.conf.classNames[d].toggle,this.$menu),"toggle"),t("."+o.toggle,this.$menu).each(function(){var n=t(this),s=n.parent(),e=n.attr("id")||i.__getUniqueId();n.attr("id",e),s.prepend(n),t('<label for="'+e+'" class="'+o.toggle+'"><div></div></label>').insertBefore(s.children().last())})},t[r].addons=t[r].addons||[],t[r].addons.push(d),t[r].defaults[d]={},t[r].configuration.classNames[d]={toggle:"Toggle"}}(jQuery);
!function(t){function n(t){return t}function s(t){return t}function e(){g=!0,o=t[r]._c,i=t[r]._d,a=t[r]._e,o.add("toggle"),l=t[r].glbl}var o,i,a,l,r="mmenu",d="toggles",g=!1;t[r].prototype["_addon_"+d]=function(){g||e(),this.opts[d]=n(this.opts[d]),this.conf[d]=s(this.conf[d]);var i=this;this.opts[d],this.conf[d],this.__refactorClass(t("input",this.$menu),this.conf.classNames[d].toggle,"toggle"),t("."+o.toggle,this.$menu).each(function(){var n=t(this),s=n.parent(),e=n.attr("id")||i.__getUniqueId();n.attr("id",e),s.prepend(n),t('<label for="'+e+'" class="'+o.toggle+'"><div></div></label>').insertBefore(s.children().last())})},t[r].addons=t[r].addons||[],t[r].addons.push(d),t[r].defaults[d]={},t[r].configuration.classNames[d]={toggle:"Toggle"}}(jQuery);
Loading

0 comments on commit 73584b4

Please sign in to comment.