Commit 079636bd authored by Yohan Boniface's avatar Yohan Boniface

Do not listen for postsync at each field

parent 51c1329b
......@@ -35,6 +35,7 @@ L.FormBuilder = L.Evented.extend({
for (var idx in this.fields) {
this.buildField(this.fields[idx]);
}
this.on('postsync', this.onPostSync);
return this.form;
},
......@@ -55,7 +56,6 @@ L.FormBuilder = L.Evented.extend({
helper = new type(this, field, options);
}
this.helpers[field] = helper;
this.on('postsync', this.onPostSync);
return helper;
},
......
{
"name": "leaflet-formbuilder",
"version": "0.2.2",
"version": "0.2.3",
"description": "Helpers to build forms in Leaflet",
"main": "Leaflet.FormBuilder.js",
"scripts": {
......
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