refactor: follow space-before-function-paren lint rule

This commit is contained in:
Daniel
2018-09-17 16:07:44 +02:00
parent c9d41ebd8a
commit d5011fb105
3 changed files with 11 additions and 11 deletions
+8 -6
View File
@@ -13,12 +13,14 @@ export function initAngular1(plugins: any) {
const serviceName = '$cordova' + name;
const cls = plugins[name];
(function (serviceName, cls, name) {
ngModule.service(serviceName, [function () {
const funcs = window.angular.copy(cls);
funcs.__proto__['name'] = name;
return funcs;
}]);
(function(serviceName, cls, name) {
ngModule.service(serviceName, [
function() {
const funcs = window.angular.copy(cls);
funcs.__proto__['name'] = name;
return funcs;
}
]);
})(serviceName, cls, name);
}
}