You have several options:
1) Create a local variable in each function:
App.ModelName.myFunction = function() { var model = App.ModelName;
2) Create a local variable in each area of โโthe file:
(function() { var model = App.ModelName; model.myFunction = function() {
3) Use the value of this :
App.ModelName.myFunction = function() {
source share