From 58c96cfeb92de7b3b27040c88e1995bc7e1f606d Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 28 Jul 2016 18:54:26 +0200 Subject: [PATCH] Binding element --- UI/Input.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/UI/Input.js b/UI/Input.js index 3229214..8e79345 100644 --- a/UI/Input.js +++ b/UI/Input.js @@ -36,8 +36,12 @@ * @since 1.0.0 * @author Dennis Eichhorn */ - jsOMS.UI.Input.bind = function (input) + jsOMS.UI.Input.bindElement = function (input) { + if(typeof input === 'undefined') { + throw 'Input element required' + } + let self = this; input.addEventListener('change', function changeBind(event)