var url = "/images/js/mn/json";
var emall_specialoffers = can.Model.extend({
findAll: "GET url/featuredStores.json"
}, {})
var emalls = can.fixture.extend({
'GET url/featuredStores.json': emalls.findAll
});
can.fixture.delay = 500;
var featurestore = can.Control.extend({
init: function() {
this.element.html(can.view('images/js/mn/temps/featured.ejs', {
offerdata: this.options.offerdata,
secTitle: this.element.attr('data-title')
}));
}
});
can we offerdata: this.options.offerdata,, secTitle: this.element.attr('data-title') be made global some how coz the data here is the same thorughout my project.
HI me again can anyone help me to correct the above code
Also is there some way to send query parameters in the
Featoff.findAll({-- HERE--}, function(offerResponse) {
new Feat('.mn_featStr', {
offerdata: offerResponse
});
});
In the parameters section of the above function.??
Reply fast please