[2.2, trunk] Window width directive fails to remove event from window
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Richard McCartney |
Bug Description
Any page with the the windowWidth directive will failed to unregister the event handler from the window object, when the scope for that directive is destroyed. That means that anytime the window is resized functions will be called for elements that no longer exist, which will prevent the windowWidth directive from working as soon as the first handler in the event fails.
angular.js:2 ReferenceError: onResize is not defined
at http://
at Scope.$broadcast (http://
at Scope.$destroy (http://
at cleanupLastView (http://
at http://
at publicLinkFn (http://
at boundTranscludeFn (http://
at controllersBoun
at update (http://
at Scope.$broadcast (http://
Related branches
- Blake Rouse (community): Approve
-
Diff: 39 lines (+17/-11)1 file modifiedsrc/maasserver/static/js/angular/directives/window_width.js (+17/-11)
description: | updated |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |