Skip to content

Commit

Permalink
Fixes if (!setting.label) …
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsalminen committed Nov 14, 2012
1 parent e66ac93 commit 1cd34d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tinynav.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! http://tinynav.viljamis.com v1.05 by @viljamis */
/*! http://tinynav.viljamis.com v1.1 by @viljamis */
(function ($, window, i) {
$.fn.tinyNav = function (options) {

Expand All @@ -19,7 +19,7 @@
namespace = 'tinynav',
namespace_i = namespace + i,
l_namespace_i = '.l_' + namespace_i,
$select = $('<select/>').attr("id",namespace_i).addClass(namespace + ' ' + namespace_i);
$select = $('<select/>').attr("id", namespace_i).addClass(namespace + ' ' + namespace_i);

if ($nav.is('ul,ol')) {

Expand Down Expand Up @@ -64,7 +64,7 @@
$(l_namespace_i).after($select);

// Inject label
if (settings.label !== '') {
if (!settings.label) {
$select.before(
$("<label/>")
.attr("for", namespace_i)
Expand Down
6 changes: 3 additions & 3 deletions tinynav.min.js

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

0 comments on commit 1cd34d4

Please sign in to comment.