121
rated 0 times
[
125]
[
4]
/ answers: 1 / hits: 17691
/ 12 Years ago, sat, april 14, 2012, 12:00:00
I have the following code and am wondering how to make the last line work. I addopted a set of api's that current use _view appended as it's namespacing convention and would rather use something like arc.view.$function_name. thx
var arc={};
arc.view={
say_hello: function(){
alert(I want to say hello);
}
}
function say_goodbye(){
alert(goodbye to you);
}
arc.view.say_hello(); // works
window['say_goodbye'](); // works
// possible to make this work?
window['arc.view.say_hello']();
More From » jquery