This repository was archived by the owner on Oct 2, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,10 @@ angular.module('ui.select', [])
97
97
}
98
98
} ) ;
99
99
100
+ scope . $on ( '$destroy' , function ( ) {
101
+ $document . off ( 'mousedown' ) ;
102
+ } ) ;
103
+
100
104
// Move transcluded elements to their correct position on main template
101
105
transcludeFn ( scope , function ( clone ) {
102
106
var transcluded = angular . element ( '<div>' ) . append ( clone ) ;
@@ -203,6 +207,10 @@ angular.module('ui.select', [])
203
207
}
204
208
} ) ;
205
209
210
+ scope . $on ( '$destroy' , function ( ) {
211
+ uiSelectCtrl . input . off ( 'keydown' ) ;
212
+ } ) ;
213
+
206
214
} ;
207
215
}
208
216
} ;
Original file line number Diff line number Diff line change @@ -97,6 +97,10 @@ angular.module('ui.select', [])
97
97
}
98
98
} ) ;
99
99
100
+ scope . $on ( '$destroy' , function ( ) {
101
+ $document . off ( 'mousedown' ) ;
102
+ } ) ;
103
+
100
104
// Move transcluded elements to their correct position on main template
101
105
transcludeFn ( scope , function ( clone ) {
102
106
var transcluded = angular . element ( '<div>' ) . append ( clone ) ;
@@ -203,6 +207,10 @@ angular.module('ui.select', [])
203
207
}
204
208
} ) ;
205
209
210
+ scope . $on ( '$destroy' , function ( ) {
211
+ uiSelectCtrl . input . off ( 'keydown' ) ;
212
+ } ) ;
213
+
206
214
} ;
207
215
}
208
216
} ;
You can’t perform that action at this time.
0 commit comments