Browse Source

Fixes debug statement in dropdown

pull/725/head
jlukic 10 years ago
parent
commit
0f9df6d7a3
1 changed files with 7 additions and 5 deletions
  1. 12
      src/modules/dropdown.js

12
src/modules/dropdown.js

@ -344,10 +344,13 @@ $.fn.dropdown = function(parameters) {
? module.get.value() ? module.get.value()
: module.get.text() : module.get.text()
; ;
strict = (value === '')
? true
: strict || false
;
if(strict === undefined && value === '') {
module.debug('Ambiguous dropdown value using strict type check', value);
strict = true;
}
else {
strict = strict || false;
}
if(value !== undefined) { if(value !== undefined) {
$item $item
.each(function() { .each(function() {
@ -363,7 +366,6 @@ $.fn.dropdown = function(parameters) {
: optionText : optionText
; ;
if(strict) { if(strict) {
module.debug('Ambiguous dropdown value using strict type check', value);
if( optionValue === value ) { if( optionValue === value ) {
$selectedItem = $(this); $selectedItem = $(this);
} }

Loading…
Cancel
Save