Permalink
Browse files

more scoping fixes for browser

  • Loading branch information...
1 parent 72743ae commit fa710a96aa9428e3a0027e5dca603b451b1ceb67 @zaach zaach committed Dec 4, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 client/client.js
View
@@ -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();

0 comments on commit fa710a9

Please sign in to comment.