2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-08 17:22:34 +03:00

Changing to file level use strict statement

This commit is contained in:
mzabriskie
2015-03-18 17:21:15 -06:00
parent fc12b933f7
commit 60a82ef424
15 changed files with 31 additions and 45 deletions
+2 -4
View File
@@ -1,7 +1,8 @@
'use strict';
var utils = require('./../utils');
function InterceptorManager() {
'use strict';
this.handlers = [];
}
@@ -14,7 +15,6 @@ function InterceptorManager() {
* @return {Number} An ID used to remove interceptor later
*/
InterceptorManager.prototype.use = function (fulfilled, rejected) {
'use strict';
this.handlers.push({
fulfilled: fulfilled,
rejected: rejected
@@ -28,7 +28,6 @@ InterceptorManager.prototype.use = function (fulfilled, rejected) {
* @param {Number} id The ID that was returned by `use`
*/
InterceptorManager.prototype.eject = function (id) {
'use strict';
if (this.handlers[id]) {
this.handlers[id] = null;
}
@@ -43,7 +42,6 @@ InterceptorManager.prototype.eject = function (id) {
* @param {Function} fn The function to call for each interceptor
*/
InterceptorManager.prototype.forEach = function (fn) {
'use strict';
utils.forEach(this.handlers, function (h) {
if (h !== null) {
fn(h);