[New Edit Mode] Code style fixes

JSLint error
This commit is contained in:
Henry
2016-01-14 15:53:10 -08:00
parent d78bd9fd51
commit f300b99b7b
8 changed files with 54 additions and 33 deletions

View File

@ -22,8 +22,10 @@
/*global define,Promise*/
define(
['../../../representation/src/gestures/GestureConstants',
'../../edit/src/objects/EditableDomainObject'],
[
'../../../representation/src/gestures/GestureConstants',
'../../edit/src/objects/EditableDomainObject'
],
function (GestureConstants, EditableDomainObject) {
"use strict";
@ -50,17 +52,15 @@ define(
((domainObject && domainObject.useCapability('view')) || [])
.forEach(selectViewIfMatching);
}
//$scope.editMode = domainObject.hasCapability('editor') ?
// true : false;
navigatedObject = domainObject;
}
function updateQueryParam(viewKey) {
var unlisten,
priorRoute = $route.current,
editMode = $scope.domainObject && $scope.domainObject.hasCapability('editor');
isEditMode = $scope.domainObject && $scope.domainObject.hasCapability('editor');
if (viewKey && !editMode) {
if (viewKey && !isEditMode) {
$location.search('view', viewKey);
unlisten = $scope.$on('$locationChangeSuccess', function () {
// Checks path to make sure /browse/ is at front