Hello! Try this way:
pre$t.myimpl = $t.createClass(null, {
Code: Select all
init : function(requestOptions) {
this.__requestOptions = $.extend({}, requestOptions);
},
process : function(settings) {
if (this.__requestOptions.echo) {
settings.success(this.__requestOptions.echo);
} else {
var cdata = JSON.parse(localStorage.getItem("_Arttable_json_response"));
var searched = "52867b22e4b0be798fab779d";
var match = cdata.filter(function(item) {
return item._id === searched;
});
settings.success(match);
settings.complete('success');
}
} }); /pre