mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 05:30:18 -03:30
Remove accidental import from directive
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
/* jshint unused: vars */
|
/* jshint unused: vars */
|
||||||
import {addResizeListener, removeResizeListener} from 'tower/shared/element-resize';
|
|
||||||
|
|
||||||
function link($compile, scope, element, attrs) {
|
function link($compile, scope, element, attrs) {
|
||||||
|
|
||||||
@@ -66,14 +65,12 @@ function link($compile, scope, element, attrs) {
|
|||||||
// wanted to leave this as a regular event binding, but
|
// wanted to leave this as a regular event binding, but
|
||||||
// was running into issues with the resized element getting
|
// was running into issues with the resized element getting
|
||||||
// removed from the DOM after truncating! No idea why yet.
|
// removed from the DOM after truncating! No idea why yet.
|
||||||
function resizeListener() {
|
element.resize(function() {
|
||||||
addTitleIfWrapping(getText());
|
addTitleIfWrapping(getText());
|
||||||
}
|
});
|
||||||
|
|
||||||
addResizeListener(element[0], resizeListener);
|
|
||||||
|
|
||||||
scope.$watch('$destroy', function() {
|
scope.$watch('$destroy', function() {
|
||||||
removeResizeListener(element[0], resizeListener);
|
element.off('resize');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user