From de7f204432e3da4a614493d0f52d2e2c712a5a25 Mon Sep 17 00:00:00 2001 From: Guoqiang Chen Date: Fri, 9 Oct 2015 15:45:44 +0000 Subject: [PATCH] code format --- angular-async-loader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/angular-async-loader.js b/angular-async-loader.js index 8527e18..388e1e8 100644 --- a/angular-async-loader.js +++ b/angular-async-loader.js @@ -35,7 +35,7 @@ * @returns {*} a promised function to ajax load dependencies */ function requireLoadFn(dependencies) { - if (typeof dependencies === 'string') { + if (typeof(dependencies) === 'string') { dependencies = [dependencies]; } return ['$q', '$rootScope', function($q, $rootScope) { @@ -64,7 +64,7 @@ var dependencies = config.dependencies; if (dependencies === undefined) { dependencies = []; - } else if (typeof dependencies === 'string') { + } else if (typeof(dependencies) === 'string') { dependencies = [dependencies]; } if (config.controllerUrl) {