public

resolve()Method

Description

Checks a path reference and returns it if it exists.

Parameters

Type Name Description
String stringRef the path how to resolve a reference.
Object [startWith = nokia.mh5.win] the object the resolution will start from.

Return Value

Type: Any

the resolved string reference

Example

 nokia.mh5.win.a = {
     b: {
         c: 4
     }
 }
 var ref = nokia.mh5.resolve("a.b.c"); //ref = 4