[Code Style] Run gulp fixstyle

...to apply code style settings from #142.
This commit is contained in:
Victor Woeltjen
2016-05-19 11:29:13 -07:00
parent f12b9704d9
commit fa77139077
440 changed files with 1885 additions and 1662 deletions

View File

@@ -24,7 +24,7 @@ define(
['./FixedProxy', './elements/ElementProxies', './FixedDragHandle'],
function (FixedProxy, ElementProxies, FixedDragHandle) {
var DEFAULT_DIMENSIONS = [ 2, 1 ],
var DEFAULT_DIMENSIONS = [2, 1],
DEFAULT_GRID_SIZE = [64, 16];
/**
@@ -277,7 +277,7 @@ define(
if (e.defaultPrevented) {
return;
}
if (editableDomainObject){
if (editableDomainObject) {
$scope.setEditable(editableDomainObject);
}
e.preventDefault();

View File

@@ -26,7 +26,7 @@ define(
// Drag handle dimensions
var DRAG_HANDLE_SIZE = [ 6, 6 ];
var DRAG_HANDLE_SIZE = [6, 6];
/**
* Template-displayable drag handle for an element in fixed

View File

@@ -29,9 +29,9 @@ define(
['./LayoutDrag'],
function (LayoutDrag) {
var DEFAULT_DIMENSIONS = [ 12, 8 ],
DEFAULT_GRID_SIZE = [ 32, 32 ],
MINIMUM_FRAME_SIZE = [ 320, 180 ];
var DEFAULT_DIMENSIONS = [12, 8],
DEFAULT_GRID_SIZE = [32, 32],
MINIMUM_FRAME_SIZE = [320, 180];
/**
* The LayoutController is responsible for supporting the
@@ -66,7 +66,7 @@ define(
if (e.defaultPrevented) {
return;
}
if (editableDomainObject){
if (editableDomainObject) {
$scope.setEditable(editableDomainObject);
}
// Ensure that configuration field is populated
@@ -103,12 +103,12 @@ define(
//Keep a track of how many composition callbacks have been made
var thisCount = ++callbackCount;
$scope.domainObject.useCapability('composition').then(function(composition){
$scope.domainObject.useCapability('composition').then(function (composition) {
var ids;
//Is this callback for the most recent composition
// request? If not, discard it. Prevents race condition
if (thisCount === callbackCount){
if (thisCount === callbackCount) {
ids = composition.map(function (object) {
return object.getId();
}) || [];

View File

@@ -54,7 +54,7 @@ define(
* @param {Array} elements the full array of elements
*/
function ElementProxy(element, index, elements) {
this.resizeHandles = [ new ResizeHandle(element, 1, 1) ];
this.resizeHandles = [new ResizeHandle(element, 1, 1)];
/**
* The element as stored in the view configuration.