[#340] jshint cleanup of backend.dataproxy.js
This commit is contained in:
@@ -42,8 +42,8 @@ this.recline.Backend.DataProxy = this.recline.Backend.DataProxy || {};
|
|||||||
useMemoryStore: true
|
useMemoryStore: true
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.fail(function(arguments) {
|
.fail(function(args) {
|
||||||
dfd.reject(arguments);
|
dfd.reject(args);
|
||||||
});
|
});
|
||||||
return dfd.promise();
|
return dfd.promise();
|
||||||
};
|
};
|
||||||
@@ -60,16 +60,16 @@ this.recline.Backend.DataProxy = this.recline.Backend.DataProxy || {};
|
|||||||
message: 'Request Error: Backend did not respond after ' + (my.timeout / 1000) + ' seconds'
|
message: 'Request Error: Backend did not respond after ' + (my.timeout / 1000) + ' seconds'
|
||||||
});
|
});
|
||||||
}, my.timeout);
|
}, my.timeout);
|
||||||
ourFunction.done(function(arguments) {
|
ourFunction.done(function(args) {
|
||||||
clearTimeout(timer);
|
clearTimeout(timer);
|
||||||
dfd.resolve(arguments);
|
dfd.resolve(args);
|
||||||
})
|
})
|
||||||
.fail(function(arguments) {
|
.fail(function(args) {
|
||||||
clearTimeout(timer);
|
clearTimeout(timer);
|
||||||
dfd.reject(arguments);
|
dfd.reject(args);
|
||||||
})
|
})
|
||||||
;
|
;
|
||||||
return dfd.promise();
|
return dfd.promise();
|
||||||
}
|
};
|
||||||
|
|
||||||
}(this.recline.Backend.DataProxy));
|
}(this.recline.Backend.DataProxy));
|
||||||
|
|||||||
Reference in New Issue
Block a user