tristaanogre's avatar
tristaanogre
Esteemed Contributor
8 years ago
Status:
New Idea

Allow Script Extensions within the same NameSpace to call each other's routines

Currently, if you have a bunch of runtime objects, etc., created in script extensions, each within the same namespace, if you are calling routines, methods, properties, etc., from one set of code into another, you still need the namespace designator.  

 

//NameSpace for the runtime objects is TestSpace

//Object 1 has method
function Object1Test() {
    Log.Message('Just a test');
}

//Object 2 wants to consume method from object one
//right now, this is what needs to be done

function Object2Test() {
    TestSpace.Object1.Object1Test();
}

//What I would like is, if they are in the same namespace, to do

function Object2Test() {
    Object1.Object1Test();
}
No CommentsBe the first to comment