Namespace goog.defineClass
code »Creates a restricted form of a Closure "class": - from the compiler's perspective, the instance returned from the constructor is sealed (no new properties may be added). This enables better checks. - the compiler will rewrite this definition to a form that is optimal for type checking and optimization (initially this will be a more traditional form).
Main
defineClass ( superClass, def ) ⇒
!Function
Parameters |
---|
|
Returns |
|
Show:
Type Definitions
Global Functions
code »goog.defineClass.applyProperties_ ( target, source )
code »goog.defineClass.createSealingConstructor_ ( ctr, superClass ) ⇒ !Function
If goog.defineClass.SEAL_CLASS_INSTANCES is enabled and Object.seal is
defined, this function will wrap the constructor in a function that seals the
results of the provided constructor function.
!Function