I tried to implement different response formats, according to the guide at http://locomotivejs.org/guide/formats/--but when using this code:var self = this; this.respond({ 'json': function() { self.res.json({ hello: 'world' }); }, default: function() { self.render(); } })I get the error ReferenceError: self is not definedAny ideas how to fix this problem=
You received this message because you are subscribed to the Google Groups "Locomotive" group.
To unsubscribe from this group and stop receiving emails from it, send an email to locomotivejs...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.