Skip to content

Commit

Permalink
fix queryChildren function
Browse files Browse the repository at this point in the history
  • Loading branch information
lordfriend committed Dec 4, 2014
1 parent baa5c35 commit 98819cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ <h3>ngSwitch</h3>
</p>
<div ng-switch="condition">
<div ng-switch-when="condition1">
<ol id="ngSwitchExample" class="nya-bs-select" ng-model="model8">
<ol id="ngSwitchExample" class="nya-bs-select" ng-model="model8" live-search="true">
<li nya-bs-option="option in options2">
<a>
{{option}}
Expand Down
3 changes: 2 additions & 1 deletion src/nya-bs-public.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,12 @@ var queryChildren = function(element, classList) {
var children = element.children(),
length = children.length,
child,
valid = true,
valid,
classes;
if(length > 0) {
for(var i = 0; i < length; i++) {
child = children.eq(i);
valid = true;
classes = getClassList(child[0]);
if(classes.length > 0) {
for(var j = 0; j < classList.length; j++) {
Expand Down
2 changes: 1 addition & 1 deletion src/nya-bs-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ nyaBsSelect.directive('nyaBsSelect', ['$parse', '$document', '$timeout', functio
tElement.append(dropdownContainer);

return function nyaBsSelectLink ($scope, $element, $attrs, ctrls) {
console.log(tElement.attr('id') + ' linked');
console.log($element.attr('id') + ' linked');
var ngCtrl = ctrls[0],
nyaBsSelectCtrl = ctrls[1],
liHeight,
Expand Down

0 comments on commit 98819cf

Please sign in to comment.