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

Do not listen for postsync at each field

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