From be8dd23b3b2570ed58341e15644e1ce16ba22862 Mon Sep 17 00:00:00 2001 From: jlukic Date: Wed, 25 Dec 2013 12:56:15 -0500 Subject: [PATCH] Removes force repaint of dropdowns due to fixes in transition module --- src/modules/dropdown.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 {