Skip to content

Commit af50d36

Browse files
committed
Remove watch on refreshDelay
1 parent 00c5301 commit af50d36

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/uiSelectChoicesDirective.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,9 @@ uis.directive('uiSelectChoices',
5656
$select.refresh(attrs.refresh);
5757
});
5858

59-
attrs.$observe('refreshDelay', function() {
60-
// $eval() is needed otherwise we get a string instead of a number
61-
var refreshDelay = scope.$eval(attrs.refreshDelay);
62-
$select.refreshDelay = refreshDelay !== undefined ? refreshDelay : uiSelectConfig.refreshDelay;
63-
});
59+
// $eval() is needed otherwise we get a string instead of a number
60+
var refreshDelay = scope.$eval(attrs.refreshDelay);
61+
$select.refreshDelay = refreshDelay !== undefined ? refreshDelay : uiSelectConfig.refreshDelay;
6462
};
6563
}
6664
};

0 commit comments

Comments
 (0)