app doesn't exist in this context. I think you mean this.resize because this.resize is defined in the initialize function.


the reason this.resizeColumns.onResizeHandler(); wouldn't work inside this toggle menu function is that it's context is outside the function. 

toggleMenu's context (this) doesn't have a variable called resizeColumns.

If you move toggleMenu out into the view's object, then it will have access to this.resizeColumns because it shares a context with it.


But in future, if you ever come across this kinda thing,  you can always pass a context into a JS function using .call() or .apply()  or if you don't want to execute the function yet, you can use underscore's _.bind() method. 

An example so you know what I mean:

var  foo = { 
       name: "sue"
};

function sayName(greeting){
    return greeting+" "+this.name;
};    
sayName.call(foo,"hi");