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

Commit ec2d9ad

Browse files
committed
chore(typeahead): change to on/off
1 parent 08b50cc commit ec2d9ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/typeahead/typeahead.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.debounce', 'ui.bootstrap
430430
}
431431
});
432432

433-
element.bind('focus', function (evt) {
433+
element.on('focus', function (evt) {
434434
hasFocus = true;
435435
if (minLength === 0 && !modelCtrl.$viewValue) {
436436
$timeout(function() {
@@ -439,7 +439,7 @@ angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.debounce', 'ui.bootstrap
439439
}
440440
});
441441

442-
element.bind('blur', function(evt) {
442+
element.on('blur', function(evt) {
443443
if (isSelectOnBlur && scope.matches.length && scope.activeIdx !== -1 && !selected) {
444444
selected = true;
445445
scope.$apply(function() {

0 commit comments

Comments
 (0)