nl_tokens: Internal : Returns the Transis . Model subclass with the given name . name - A string representing the name of a Transis . Model subclass . raise - A boolean indicating whether an exception should be raised if the name can t be resolved ( default : true ) . Returns the resolved subclass constructor function or undefined if a class with the given name is not known . Throws Error if the raise argument is true and the name cannot not be resolved .
pl_tokens: function resolve ( <mask> ) { var raise = arguments . length > 1 && arguments [ 1 ] !== undefined ? arguments [ 1 ] : true ; var klass = typeof name === 'function' ? name : subclasses [ name ] ; if ( ! klass && raise ) { throw new Error ( "Transis.Model.resolve: could not resolve subclass: `" + name + "`" ) ; } return klass ; }