Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit d6c14d4

Browse files
committed
perf: change test in ctrl.isActive
perf: change test in ctrl.isActive before : ( itemIndex < 0 && ctrl.taggingLabel !== false ) ||( itemIndex < 0 && ctrl.taggingLabel === false) after : itemIndex < 0
1 parent 5ae151a commit d6c14d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uiSelectController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ uis.controller('uiSelectCtrl',
287287
var itemIndex = ctrl.items.indexOf(itemScope[ctrl.itemProperty]);
288288
var isActive = itemIndex == ctrl.activeIndex;
289289

290-
if ( !isActive || ( itemIndex < 0 && ctrl.taggingLabel !== false ) ||( itemIndex < 0 && ctrl.taggingLabel === false) ) {
290+
if ( !isActive || itemIndex < 0 ) {
291291
return false;
292292
}
293293

0 commit comments

Comments
 (0)