diff --git a/src/modules/dropdown.js b/src/modules/dropdown.js index 3b6320746..71200a75f 100755 --- a/src/modules/dropdown.js +++ b/src/modules/dropdown.js @@ -464,7 +464,6 @@ $.fn.dropdown = function(parameters) { queue : false }) ; - $currentMenu.transition('force repaint'); } else if(settings.transition == 'slide down') { $currentMenu @@ -712,13 +711,14 @@ $.fn.dropdown = function(parameters) { }, invoke: function(query, passedArguments, context) { var + object = instance, maxDepth, found, response ; passedArguments = passedArguments || queryArguments; context = element || context; - if(typeof query == 'string' && instance !== undefined) { + if(typeof query == 'string' && object !== undefined) { query = query.split(/[\. ]/); maxDepth = query.length - 1; $.each(query, function(depth, value) { @@ -726,18 +726,18 @@ $.fn.dropdown = function(parameters) { ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1) : query ; - if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) { - instance = instance[camelCaseValue]; + if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) { + object = object[camelCaseValue]; } - else if( instance[camelCaseValue] !== undefined ) { - found = instance[camelCaseValue]; + else if( object[camelCaseValue] !== undefined ) { + found = object[camelCaseValue]; return false; } - else if( $.isPlainObject( instance[value] ) && (depth != maxDepth) ) { - instance = instance[value]; + else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) { + object = object[value]; } - else if( instance[value] !== undefined ) { - found = instance[value]; + else if( object[value] !== undefined ) { + found = object[value]; return false; } else {