I trigger an event from one view like this:
select: function () {
// Shorthand for the application namespace
var app = brickpile.app;
// Trigger the selected event
app.trigger('selected', this.model);
}
and binds to the same event in another view:
initialize: function () {
// Shorthand for the application namespace
var app = brickpile.app;
// bind to the selected event
app.bind('selected', this.selected);
},
in my function I get the current instance el property?
selected: function (model) {
// find the input hidden located in this views el
$(this.el)... // is undefined
},
what have I missed?