TinyMCE:API/tinymce/resolve

From Moxiecode Documentation Wiki

Jump to: navigation, search

Contents

Method: resolve

Summary

Resolves a string and returns the object from a specific structure.

Syntax

<Object> resolve(<String> n, <Object> o)

Parameters

n
Path to resolve for example a.b.c.d.
o
Optional object to search though, defaults to window.

Returns

Last object in path or null if it couldn't be resolved.

Examples

// Resolve a path into an object reference
var obj = tinymce.resolve('a.b.c.d');
Personal tools