Skip to content

Commit

Permalink
Merge pull request #93 from foreverr/fix-searchbox
Browse files Browse the repository at this point in the history
Make sure searchBox.off exists
  • Loading branch information
lordfriend committed Sep 8, 2015
2 parents b317760 + e171ec3 commit 7ee7521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nya-bs-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ nyaBsSelect.directive('nyaBsSelect', ['$parse', '$document', '$timeout', 'nyaBsC
$scope.$on('$destroy', function() {
dropdownMenu.off();
dropdownToggle.off();
searchBox.off();
if (searchBox.off) searchBox.off();
$document.off('click', outClick);
console.log('unregister event handler');
});
Expand Down

0 comments on commit 7ee7521

Please sign in to comment.