Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Work in browser + nodejs possibly
  • Loading branch information
mhkeller committed Jan 15, 2016
commit 19b77e25b820d6a745c46b037634b2ff2bf202df
9 changes: 9 additions & 0 deletions graph-scroll.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
if (typeof exports !== 'undefined') {
if (typeof module !== 'undefined' && module.exports) {
exports = module.exports = graphScroll;
}
exports.graphScroll = graphScroll;
} else {
root.graphScroll = graphScroll;
}

function graphScroll() {
var windowHeight,
dispatch = d3.dispatch("scroll", "active"),
Expand Down