提交 8beeeee5 编写于 作者: J Joshua Peek

Merge pull request #52 from github/self

Assign to self
......@@ -12,11 +12,10 @@
"unused": true,
"strict": true,
"trailing": true,
"boss": true,
"asi": true,
"boss": true,
"esnext": true,
"eqnull": true,
"browser": true,
"globals": {
"Promise": false
}
"worker": true
}
(function(global) {
(function() {
'use strict';
if (global.fetch) {
if (self.fetch) {
return
}
......@@ -203,7 +203,7 @@
Body.call(Response.prototype)
global.fetch = function (url, options) {
self.fetch = function (url, options) {
return new Request(url, options).fetch()
}
})(this);
})();
......@@ -10,11 +10,13 @@
"undef": true,
"unused": true,
"trailing": true,
"boss": true,
"asi": true,
"boss": true,
"esnext": true,
"sub": true,
"eqnull": true,
"browser": true,
"worker": true,
"globals": {
"MockXHR": false,
"QUnit": false,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册