Reference to $window is no longer needed.