Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
setData: function(data) {
:
var dataAry = $.isArray(data) ? data : [data];
var details = [];
for (var i = 0, l = dataAry.length; i < l; i++) {
var d = dataAry[i];
details.push({
id: d.id,
:
applicationDate: d.applicationDate
});
}
this.view.update('{rootElement}', 'purchaseDetail', {
details: details
});
this.refresh();
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment