Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
more scoping fixes for browser
Browse files Browse the repository at this point in the history
  • Loading branch information
zaach committed Dec 4, 2012
1 parent 72743ae commit fa710a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/client.js
@@ -1,3 +1,7 @@
if (typeof GombotCrypto === 'undefined') {
var GombotCrypto = require('./crypto.js');
}

;(function() { ;(function() {


GombotClient = function(host, port) { GombotClient = function(host, port) {
Expand All @@ -7,10 +11,6 @@ GombotClient = function(host, port) {


var xhr = typeof jQuery !== 'undefined' ? jQuery.ajax : require('xhrequest'); var xhr = typeof jQuery !== 'undefined' ? jQuery.ajax : require('xhrequest');


if (typeof GombotCrypto === 'undefined') {
var GombotCrypto = require('./crypto.js');
}

function request(args, cb) { function request(args, cb) {
var url = args.scheme ? args.scheme : 'http'; var url = args.scheme ? args.scheme : 'http';
var method = args.method.toUpperCase(); var method = args.method.toUpperCase();
Expand Down

0 comments on commit fa710a9

Please sign in to comment.