Documentation

Plugins/Claypool/resolve

From jQuery JavaScript Library

Jump to: navigation, search

« Back to Plugins/Claypool

resolve( id )

Resolves a string into object.
This method allows us to reference classes before they are loaded by simply using the string name in configurations. $.resolve simply walks down the namespace and returns null if the name can't be resolved.
Arguments:
idString
A dot-delimited string.


Examples:
Returns the class MyApp.Models.User. if any of the names don't exist while resolving, it simply return null.

$.resolve('MyApp.Models.User');

NameType