mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
update to latest gitter (fix for Node)
This commit is contained in:
parent
2fffe39182
commit
cd41a15f1e
1 changed files with 20 additions and 16 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue