i'm developing an app for Blackberry OS5 using Phonegap + Zepto + Backbone. In order to do so, I've been using Backbone-forms to handle submition but since OS5 has problems with jQuery version higher than 1.4.4, i moved to Zepto, but the render method on BackboneForms stop working, could anyone help me with it?
Here it's the section where it breaks, for full code please check here https://github.com/powmedia/backbone-forms:
render: function() {
var self = this,
options = this.options,
template = Form.templates[options.template];
//Create el from template - HERE IT BREAKS
var $form = $(template({
fieldsets: '<b class="bbf-tmp"></b>'
}));
//Render fieldsets
var $fieldsetContainer = $('.bbf-tmp', $form);
_.each(options.fieldsets, function(fieldset) {
$fieldsetContainer.append(self.renderFieldset(fieldset));
});
$fieldsetContainer.children().unwrap();
//Set the template contents as the main element; removes the wrapper element
this.setElement($form);
if (this.hasFocus) this.trigger('blur', this);
return this;
},
Thanks in advance!