Commit e5e2cc43 authored by Yohan Boniface's avatar Yohan Boniface

Call obj.fire('synced') when it exists

parent ae7eb5aa
......@@ -63,6 +63,7 @@ L.FormBuilder = L.Class.extend({
this.options.callback.call(this.options.callbackContext || this.obj, field);
}
this.fire('synced', {field: field});
if (this.obj.fire) this.obj.fire('synced', {field: field});
}, this);
// L.DomEvent.on(input, 'keydown', function (e) {
// var key = e.keyCode,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment