From 367650d464f810bb321958faae7203ef8808e182 Mon Sep 17 00:00:00 2001 From: SoufianeLasri Date: Mon, 13 Mar 2017 18:16:02 +0100 Subject: [PATCH] Avoid building errors with some compilers --- lib/component/NumberInput_Internal.js | 2 +- lib/component/StringOutput.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/component/NumberInput_Internal.js b/lib/component/NumberInput_Internal.js index d30a170..28cf7ba 100644 --- a/lib/component/NumberInput_Internal.js +++ b/lib/component/NumberInput_Internal.js @@ -13,7 +13,7 @@ function inputSetValue(input,value){ input.dispatchEvent(new Event('input')); } -NumberInput_Internal = function (stepValue, dp, onBegin, onChange, onFinish, onError) { +function NumberInput_Internal(stepValue, dp, onBegin, onChange, onFinish, onError) { EventDispatcher.apply(this, null); this._value = 0; diff --git a/lib/component/StringOutput.js b/lib/component/StringOutput.js index 351a529..84e7769 100644 --- a/lib/component/StringOutput.js +++ b/lib/component/StringOutput.js @@ -1,6 +1,6 @@ var Output = require('./Output'); -StringOutput = function (parent, object, value, params) { +function StringOutput(parent, object, value, params) { Output.apply(this, arguments); }; StringOutput.prototype = Object.create(Output.prototype);