I have some code that looks like this
var viewService = function () {
...
return {
...
,isAbsolute: function (view) { ... }
...
,removeAbsoluteViews: function () { ... }
}
};
};
What I'd like to do is call isAbsolute
from removeAbsoluteViews
. When I try to do that like this
if (isAbsolute(v) === false) { ... }
I get an error saying isAbsolute
is not defined. How can I do this?