From 5eb19107337c8119b624b45e1f303ad9a1e66f1b Mon Sep 17 00:00:00 2001 From: bstriker Date: Sun, 17 Apr 2016 05:54:26 -0400 Subject: [PATCH] correct/convert some syntax to proper es6 syntax --- app/js/services/cordova.js | 4 ++-- gulp/tasks/browserify.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/js/services/cordova.js b/app/js/services/cordova.js index b18665e1..795dee51 100644 --- a/app/js/services/cordova.js +++ b/app/js/services/cordova.js @@ -4,9 +4,9 @@ function CordovaService($document, $timeout, $window, $q) { 'ngInject'; - const defer = $q.defer(); + const self = this; - let self = this; + const defer = $q.defer(); self.ready = defer.promise; diff --git a/gulp/tasks/browserify.js b/gulp/tasks/browserify.js index d275a183..94da1056 100644 --- a/gulp/tasks/browserify.js +++ b/gulp/tasks/browserify.js @@ -41,7 +41,7 @@ function buildScript(file) { } function loadBrowserPlatform(){ - var platformWWW = './platforms/browser/www/'; + let platformWWW = './platforms/browser/www/'; if(!fs.existsSync(platformWWW)){ handleErrors('Browser platform not installed!!! Cordova will FAIL');