Fix typeof check in Graph.js #398

Closed
wants to merge 1 commit into
from
@@ -290,7 +290,7 @@ Rickshaw.Graph = function(args) {
args = args || {};
- if (typeof window !== undefined) {
+ if (typeof window !== 'undefined') {
var style = window.getComputedStyle(this.element, null);
var elementWidth = parseInt(style.getPropertyValue('width'), 10);
var elementHeight = parseInt(style.getPropertyValue('height'), 10);