Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var StationQueueViewModel = can.Map.extend({
- define: {
- queue: {
- get: function() {
- var slug = can.route.attr('slug');
- console.log(slug);
- //slug = "requests";
- return StationQueue.findOne({station_slug: slug});
- }
- }
- }
- });
- var StationQueue = can.Model.extend({
- findOne: 'GET '+_api_url+'/station/{station_slug}/queue'
- }, {
- // Include second, empty parameter object to set instanceProperties
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement