Add form-updating input validation for components

This commit is contained in:
gconsidine
2017-05-11 15:22:17 -04:00
parent 725fd15519
commit 29a325d52f
13 changed files with 191 additions and 88 deletions

View File

@@ -8,11 +8,9 @@ function addListeners (scope, list) {
return listeners;
}
function addListener (scope, el, name, fn, type) {
type = type || '$apply';
function addListener (scope, el, name, fn) {
let listener = {
fn: () => scope[type](fn),
fn,
name,
el
};