Fixed work items breaking on resize in Safari

Replaced $window.resize with a debounced resize event handler