From 66acf397fc0c6090b764d2a04bcad2ede0041d15 Mon Sep 17 00:00:00 2001 From: Joe Hudson Date: Mon, 26 Jan 2015 09:00:38 -0500 Subject: [PATCH] fix AMD logic --- vars.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars.js b/vars.js index 081c9d8..c9f5043 100644 --- a/vars.js +++ b/vars.js @@ -56,7 +56,7 @@ module.exports = { } var React = this.React || global.React; - if (!React && (typeof require !== 'undefined') && (typeof define === 'function')) { + if (!React && (typeof require !== 'undefined') && (typeof define !== 'function')) { // allow the charts to not need to be initialized for commonJS React = this.React = require('react'); }