From 1821ae9fbc957c54c73fd9be8d4fcd797f24e83f Mon Sep 17 00:00:00 2001 From: jlukic Date: Sun, 26 Apr 2015 19:26:03 -0400 Subject: [PATCH] Fixes select chaining not invoking methods --- src/definitions/modules/dropdown.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index 9b46b5327..fc189b09a 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -224,8 +224,13 @@ $.fn.dropdown = function(parameters) { module.refresh(); // adjust all modules $firstModules = $allModules.slice(0, index); - $lastModules = $allModules.slice(index + 1); - $allModules = $firstModules.add($module).add($lastModules); + $lastModules = $allModules.slice(index + 1); + $allModules = $firstModules.add($module).add($lastModules); + // invoke method in context of current instance + if(methodInvoked) { + instance = module; + module.invoke(query); + } } },