Skip to content

Commit 0237571

Browse files
committed
reverted jquery
1 parent 2b4bf38 commit 0237571

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

elevator.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,16 @@ var Elevator = function(options) {
171171
}
172172

173173
function bindElevateToElement( element ) {
174-
$(element).on('click', that.elevate);
174+
if( element.addEventListener ) {
175+
element.addEventListener('click', that.elevate, false);
176+
} else {
177+
// Older browsers
178+
element.attachEvent('onclick', function() {
179+
document.documentElement.scrollTop = endPosition;
180+
document.body.scrollTop = endPosition;
181+
window.scroll(0, endPosition);
182+
});
183+
}
175184
}
176185

177186
function init( _options ) {

0 commit comments

Comments
 (0)