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

Commit 08b50cc

Browse files
committed
chore(dropdown): change to on/off
1 parent 44ab0a8 commit 08b50cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dropdown/dropdown.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ angular.module('ui.bootstrap.dropdown', ['ui.bootstrap.position'])
346346
}
347347
};
348348

349-
element.bind('click', toggleDropdown);
349+
element.on('click', toggleDropdown);
350350

351351
// WAI-ARIA
352352
element.attr({ 'aria-haspopup': true, 'aria-expanded': false });
@@ -355,7 +355,7 @@ angular.module('ui.bootstrap.dropdown', ['ui.bootstrap.position'])
355355
});
356356

357357
scope.$on('$destroy', function() {
358-
element.unbind('click', toggleDropdown);
358+
element.off('click', toggleDropdown);
359359
});
360360
}
361361
};

0 commit comments

Comments
 (0)