im currently developing with requirejs and have a module wich returns two functions in an assoziative array, now I want to call the first function from the second one, I tried this.foo(), but it didn't work. Is there a way to call a sibling element in a assoziative array, or perhaps require the module in itself?
example:
define[],function(){
return {
foo: function() { echo("foo");},
bar: function() { this.foo();}
}
}