update to latest gitter (fix for Node)

This commit is contained in:
Sami Samhuri 2010-11-28 22:41:55 -08:00
parent 2fffe39182
commit cd41a15f1e

View file

@ -9,20 +9,26 @@
// - authentication and write APIs // - authentication and write APIs
(function() { (function() {
// fuck ie var global = this
var ie = (function() { , isBrowser = 'document' in global
var undef , ie
, v = 3
, div = document.createElement('div')
, all = div.getElementsByTagName('i')
while ( if (isBrowser) {
div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->', // fuck ie
all[0] ie = (function() {
); var undef
, v = 3
, div = document.createElement('div')
, all = div.getElementsByTagName('i')
return v > 4 ? v : undef while (
}()) div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->',
all[0]
);
return v > 4 ? v : undef
}())
}
var inherits var inherits
if ('create' in Object) { if ('create' in Object) {
@ -56,10 +62,8 @@
} }
} }
var global = this // when running in the browser request is set later
, isBrowser = 'document' in global var request = isBrowser ? null : require('request')
// when running in the browser request is set later
, request = isBrowser ? null : require('request')
, Blob, Branch, Commit, Raw, Repo, Tree, User , Blob, Branch, Commit, Raw, Repo, Tree, User
, api , api