madmimi/angular-foundation — pull request #80 by mickeywu (2014-08-01 19:08:11+00:00)
Title: fix(topbar) don't rely on scrollTop() for sticky

When top bar is sticky:
```

...

```

All browsers will throw an ```Uncaught TypeError: undefined is not a function``` for ```win.scrollTop()```.

This is caused by the fact that ```scrollTop()``` is not a native JS function but a jQuery function. Instead, we should be using ```$window.scrollY``` which is supported cross browser (> IE8).