Uncaught ReferenceError: formToData is not defined

Hi There,

I’m using formToData on my form using framework7 v2,
It’s not working or I’m missing something?

$$(’.submit’).on(‘click’, function(e){
e.preventDefault();

var $ = this.$;
var app = this.$app;
var formData = app.formToData(’#My-Form’);

app.request({
type: “POST”,
url: “my-url”,
data: formData,
cache: false,
success: function(data){
$$(’#messages’).html(data);
},
error: function(xhr) { // if error occured
$$(’#messages’).html(“Error occured, please try again.”);
}
});

});

when execute message come Uncaught ReferenceError: formToData is not defined on chrome dev console

In latest beta.17 it is app.form.toData('#My-Form);

In next update it will be renamed to app.form.convertToData('#My-Form');

okay then, I will wait until the code is finalized.

thank for your update.