Skip to content

Commit

Permalink
check for window
Browse files Browse the repository at this point in the history
  • Loading branch information
gka committed Mar 7, 2016
1 parent fd94fa6 commit 7c5bb2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions d3-jetpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
};
};
// store d3.f as convenient unicode character function (alt-f on macs)
if (!window.hasOwnProperty('ƒ')) window.ƒ = d3.f;
if (typeof window !== 'undefined' && !window.hasOwnProperty('ƒ')) window.ƒ = d3.f;

// this tweak allows setting a listener for multiple events, jquery style
var d3_selection_on = d3.selection.prototype.on;
Expand All @@ -160,4 +160,4 @@

return d3;

}));
}));

0 comments on commit 7c5bb2f

Please sign in to comment.