Skip to content

Instantly share code, notes, and snippets.

@poteto
Created April 17, 2015 22:13
Show Gist options
  • Save poteto/d39fed02ff5274ccb68c to your computer and use it in GitHub Desktop.
Save poteto/d39fed02ff5274ccb68c to your computer and use it in GitHub Desktop.
_scrollHandler(context=null) {
Ember.assert('You must pass a valid context to _scrollHandler', context);
const viewportRefreshRate = get(this, 'viewportRefreshRate');
debounce(this, function() {
this._setViewportEntered(context);
}, viewportRefreshRate);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment