Binding element

This commit is contained in:
Dennis Eichhorn 2016-07-28 18:54:26 +02:00
parent 86a20798d3
commit 58c96cfeb9

View File

@ -36,8 +36,12 @@
* @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com>
*/
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)