From 8df27a1c053f7f3dbb1ad1679401406e926c9a4f Mon Sep 17 00:00:00 2001 From: Henry Date: Tue, 1 Dec 2015 22:34:26 -0800 Subject: [PATCH] Fixing jslint errors --- platform/core/src/capabilities/PersistenceCapability.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/core/src/capabilities/PersistenceCapability.js b/platform/core/src/capabilities/PersistenceCapability.js index 52f2787f51..3ff5a26dbf 100644 --- a/platform/core/src/capabilities/PersistenceCapability.js +++ b/platform/core/src/capabilities/PersistenceCapability.js @@ -82,7 +82,7 @@ define( */ function rejectIfFalsey(value, $q){ if (!value){ - return $q.reject("Error persisting object") + return $q.reject("Error persisting object"); } else { return value; } @@ -133,7 +133,9 @@ define( domainObject.getModel() ]).then(function(result){ return rejectIfFalsey(result, self.$q); + /*jshint es5: true */ }).catch(function(error){ + /*jshint es5: false */ return notifyOnError(error, domainObject, self.alertService, self.$q); }); };