From 825f50262cc475196b4d865e955123434af7cac7 Mon Sep 17 00:00:00 2001 From: Aaron Doubek-Kraft Date: Mon, 26 Jun 2017 11:15:09 -0700 Subject: [PATCH] [Fixed position] Incorporate numberfield control Fix style and merge issues --- .../layout/src/elements/ElementProxy.js | 22 ------------------- .../features/layout/src/elements/LineProxy.js | 1 - 2 files changed, 23 deletions(-) diff --git a/platform/features/layout/src/elements/ElementProxy.js b/platform/features/layout/src/elements/ElementProxy.js index a6d3c16aed..7d75219adb 100644 --- a/platform/features/layout/src/elements/ElementProxy.js +++ b/platform/features/layout/src/elements/ElementProxy.js @@ -156,28 +156,6 @@ define( return this.resizeHandles; }; - /** - * Ensure and input type is numeric: intended to be passed as the - * updater argument to an AccessorMutator object in order to restrict - * input to integer values only. - * @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) { - var intValue = parseInt(value); - // Handle case of empty field by swapping in 0 - if (value === '') { - return 0; - } - // Else, check if the input is integral, and not, return current value - // of the field - if (isNaN(intValue)) { - return current; - } else { - return intValue; - } - }; - return ElementProxy; } ); diff --git a/platform/features/layout/src/elements/LineProxy.js b/platform/features/layout/src/elements/LineProxy.js index e5ec31c149..e121561061 100644 --- a/platform/features/layout/src/elements/LineProxy.js +++ b/platform/features/layout/src/elements/LineProxy.js @@ -154,7 +154,6 @@ define( proxy.editX2 = new AccessorMutator(element, 'x2'); proxy.editY2 = new AccessorMutator(element, 'y2'); - return proxy; }