[Build] Relocate operators
...in multi-line expressions, to satisfy JSHint.
This commit is contained in:
@@ -79,9 +79,9 @@ define(
|
||||
*/
|
||||
function isEditing(context) {
|
||||
var domainObject = (context || {}).domainObject;
|
||||
return domainObject
|
||||
&& domainObject.hasCapability('status')
|
||||
&& domainObject.getCapability('status').get('editing');
|
||||
return domainObject &&
|
||||
domainObject.hasCapability('status') &&
|
||||
domainObject.getCapability('status').get('editing');
|
||||
}
|
||||
|
||||
EditActionPolicy.prototype.allow = function (action, context) {
|
||||
|
||||
@@ -45,8 +45,8 @@ define(
|
||||
statusCapability = navigatedObject &&
|
||||
navigatedObject.getCapability("status");
|
||||
|
||||
return statusCapability && statusCapability.get('editing')
|
||||
&& editorCapability && editorCapability.dirty();
|
||||
return statusCapability && statusCapability.get('editing') &&
|
||||
editorCapability && editorCapability.dirty();
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -388,8 +388,8 @@ define(
|
||||
notifications queued for display, setup a timeout to
|
||||
dismiss the dialog.
|
||||
*/
|
||||
if (notification && (notification.model.autoDismiss
|
||||
|| this.selectNextNotification())) {
|
||||
if (notification && (notification.model.autoDismiss ||
|
||||
this.selectNextNotification())) {
|
||||
|
||||
timeout = notification.model.autoDismiss || this.DEFAULT_AUTO_DISMISS;
|
||||
this.active.timeout = this.$timeout(function () {
|
||||
@@ -416,8 +416,8 @@ define(
|
||||
for (; i< this.notifications.length; i++) {
|
||||
notification = this.notifications[i];
|
||||
|
||||
if (!notification.model.minimized
|
||||
&& notification!== this.active.notification) {
|
||||
if (!notification.model.minimized &&
|
||||
notification!== this.active.notification) {
|
||||
|
||||
return notification;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user