From fa710a96aa9428e3a0027e5dca603b451b1ceb67 Mon Sep 17 00:00:00 2001 From: Zachary Carter Date: Mon, 3 Dec 2012 17:10:37 -0800 Subject: [PATCH] more scoping fixes for browser --- client/client.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/client.js b/client/client.js index 8a93026..7330ae7 100644 --- a/client/client.js +++ b/client/client.js @@ -1,3 +1,7 @@ +if (typeof GombotCrypto === 'undefined') { + var GombotCrypto = require('./crypto.js'); +} + ;(function() { GombotClient = function(host, port) { @@ -7,10 +11,6 @@ GombotClient = function(host, port) { var xhr = typeof jQuery !== 'undefined' ? jQuery.ajax : require('xhrequest'); -if (typeof GombotCrypto === 'undefined') { - var GombotCrypto = require('./crypto.js'); -} - function request(args, cb) { var url = args.scheme ? args.scheme : 'http'; var method = args.method.toUpperCase();