Mr. Bean Posted July 13, 2008 Share Posted July 13, 2008 I am looking for a way to return the namespace of a function within an object in Javascript. Example: MyClass = { A:{ B:{ test : function(){ alert(this.stackTrace); } } } }; MyClass.A.B.test(); // displays "MyClass.A.B" Link to comment Share on other sites More sharing options...
0 kjordan2001 Posted July 13, 2008 Share Posted July 13, 2008 http://www.helephant.com/Article.aspx?ID=675 That should give you some ideas. Link to comment Share on other sites More sharing options...
Question
Mr. Bean
I am looking for a way to return the namespace of a function within an object in Javascript.
Example:
Link to comment
Share on other sites
1 answer to this question
Recommended Posts