diff --git a/platform/features/fixed/bundle.js b/platform/features/fixed/bundle.js index 8ae678c5f1..e6e66574d8 100644 --- a/platform/features/fixed/bundle.js +++ b/platform/features/fixed/bundle.js @@ -155,7 +155,7 @@ define([ "control": "textfield" }, { - "property":"editY", + "property": "editY", "text": "Y", "name": "Y", "cssClass": "l-input-sm", @@ -202,13 +202,12 @@ define([ "text": "W", "name": "W", "cssClass": "l-input-sm numerical", - "control": "textfield", + "control": "textfield" } ] - }, { - "items":[ + "items": [ { "property": "text", "cssClass": "icon-gear", diff --git a/platform/features/layout/src/elements/BoxProxy.js b/platform/features/layout/src/elements/BoxProxy.js index 69431a834e..d74003d171 100644 --- a/platform/features/layout/src/elements/BoxProxy.js +++ b/platform/features/layout/src/elements/BoxProxy.js @@ -53,10 +53,10 @@ define( proxy.fill = new AccessorMutator(element, 'fill'); //Expose x,y, width and height for editing - proxy.editWidth = new AccessorMutator(element,'width', proxy.checkNumeric); - proxy.editHeight = new AccessorMutator(element,'height', proxy.checkNumeric); - proxy.editX = new AccessorMutator(element,'x',proxy.checkNumeric); - proxy.editY = new AccessorMutator(element,'y', proxy.checkNumeric); + proxy.editWidth = new AccessorMutator(element, 'width', proxy.checkNumeric); + proxy.editHeight = new AccessorMutator(element, 'height', proxy.checkNumeric); + proxy.editX = new AccessorMutator(element, 'x', proxy.checkNumeric); + proxy.editY = new AccessorMutator(element,' y', proxy.checkNumeric); return proxy; } diff --git a/platform/features/layout/src/elements/ElementProxy.js b/platform/features/layout/src/elements/ElementProxy.js index bb66186f82..a6d3c16aed 100644 --- a/platform/features/layout/src/elements/ElementProxy.js +++ b/platform/features/layout/src/elements/ElementProxy.js @@ -163,15 +163,15 @@ define( * @return Either the string '' (for no input), the new value passed in, * or the current value of the new value is invalid. */ - ElementProxy.prototype.checkNumeric = function(value, current) { + ElementProxy.prototype.checkNumeric = function (value, current) { var intValue = parseInt(value); // Handle case of empty field by swapping in 0 - if (value === ''){ + if (value === '') { return 0; } // Else, check if the input is integral, and not, return current value // of the field - if ( isNaN(intValue) ){ + if (isNaN(intValue)) { return current; } else { return intValue; diff --git a/platform/features/layout/src/elements/ImageProxy.js b/platform/features/layout/src/elements/ImageProxy.js index fd5d77728e..d10ed64305 100644 --- a/platform/features/layout/src/elements/ImageProxy.js +++ b/platform/features/layout/src/elements/ImageProxy.js @@ -52,8 +52,8 @@ define( //Expose width and height properties for editing proxy.editWidth = new AccessorMutator(element, 'width', proxy.checkNumeric); proxy.editHeight = new AccessorMutator(element, 'height', proxy.checkNumeric); - proxy.editX = new AccessorMutator(element,'x',proxy.checkNumeric); - proxy.editY = new AccessorMutator(element,'y', proxy.checkNumeric); + proxy.editX = new AccessorMutator(element, 'x', proxy.checkNumeric); + proxy.editY = new AccessorMutator(element,' y', proxy.checkNumeric); return proxy; } diff --git a/platform/features/layout/src/elements/LineProxy.js b/platform/features/layout/src/elements/LineProxy.js index 849feb0785..a85ee3266f 100644 --- a/platform/features/layout/src/elements/LineProxy.js +++ b/platform/features/layout/src/elements/LineProxy.js @@ -149,10 +149,10 @@ define( }; // Expose endpoint coordinates for editing - proxy.editX1 = new AccessorMutator(element,'x', proxy.checkNumeric); - proxy.editY1 = new AccessorMutator(element,'y', proxy.checkNumeric); - proxy.editX2 = new AccessorMutator(element,'x2', proxy.checkNumeric); - proxy.editY2 = new AccessorMutator(element,'y2', proxy.checkNumeric); + proxy.editX1 = new AccessorMutator(element, 'x', proxy.checkNumeric); + proxy.editY1 = new AccessorMutator(element, 'y', proxy.checkNumeric); + proxy.editX2 = new AccessorMutator(element, 'x2', proxy.checkNumeric); + proxy.editY2 = new AccessorMutator(element, 'y2', proxy.checkNumeric); return proxy; }