breakpoint
breakpoint copied to clipboard
Have a standard way to get width of the window
You should have a standard way to get the width of the window - this is done in two separate ways in two locations $window.width()
and using native properties. Alternatively, abstract this process out to a module and reduce the amount of code in both locations.