Browse Source

Fixes select chaining not invoking methods

pull/2183/head
jlukic 9 years ago
parent
commit
1821ae9fbc
1 changed files with 7 additions and 2 deletions
  1. 9
      src/definitions/modules/dropdown.js

9
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);
}
}
},

Loading…
Cancel
Save