driftyco/ionic-starter-tabs — pull request #11 by stevemao (2014-10-05 07:45:43+00:00)
Title: Use $window instead of global window

While window is globally available in JavaScript, it causes testability problems, because it is a global variable. Using the $window service it may be overridden, removed or mocked for testing.