. , .
, , , .
App.Controller = Ember.Controller.extend({
functionToReturnValue: function(param1, param2) {
return value;
},
});
:
var value = this.get("functionToReturnValue").call(this, param1, param2);
:
var controller = this.get("controller"); // from view, [needs] or whatever
var value = controller.get("functionToReturnValue").call(controller, param1, param2); // from other controller
call() , ; this. this. , , .
API, , , : http://emberjs.com/api/#method_tryInvoke