Skip to content

Instantly share code, notes, and snippets.

@rickycodes
Last active August 29, 2015 14:26
Show Gist options
  • Save rickycodes/2ef28783a2e481e20037 to your computer and use it in GitHub Desktop.
Save rickycodes/2ef28783a2e481e20037 to your computer and use it in GitHub Desktop.
define([
'intern!object',
'intern/chai!assert',
'require'
], function (registerSuite, assert, require) {
function getScrollPosition(context) {
return context.remote
.execute(function () {
y = window.pageYOffset;
return y;
});
}
registerSuite({
name: 'scrollupdate',
'scroll updates on navigation click' : function() {
var linkToCheck = 'about';
console.log(getScrollPosition(this));
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment