TinyMCE:API/tinymce/resolve
From Moxiecode Documentation Wiki
< TinyMCE:API | tinymce
Contents |
[edit]
Method: resolve
[edit]
Summary
Resolves a string and returns the object from a specific structure.
[edit]
Syntax
<Object> resolve(<String> n, <Object> o)
[edit]
Parameters
- n
- Path to resolve for example a.b.c.d.
- o
- Optional object to search though, defaults to window.
[edit]
Returns
Last object in path or null if it couldn't be resolved.
[edit]
Examples
// Resolve a path into an object reference
var obj = tinymce.resolve('a.b.c.d');
