src/aria/templates/ClassGenerator.js
function (out) {
            out.writeln("$constructor: function() { ");
            out.increaseIndent();
            var parentClassName = out.parentClassName;
            if (parentClassName) {
                out.writeln("this.$", parentClassName, ".constructor.call(this);");
            }
            var scriptClassName = out.scriptClassName;
            if (scriptClassName) {
                out.writeln("this.$", scriptClassName, ".constructor.call(this);");
            }
            out.decreaseIndent();
            out.writeln("},");
        }
function (out) {
            out.writeln("$constructor: function() { ");
            out.increaseIndent();
            var parentClassName = out.parentClassName;
            if (parentClassName) {
                out.writeln("this.$", parentClassName, ".constructor.call(this);");
            }
            var scriptClassName = out.scriptClassName;
            if (scriptClassName) {
                out.writeln("this.$", scriptClassName, ".constructor.call(this);");
            }
            out.decreaseIndent();
            out.writeln("},");
        }
function ( out ) { out . writeln ( "$constructor: function() { " ) ; out . increaseIndent ( ) ; var parentClassName = out . parentClassName ; if ( parentClassName ) { out . writeln ( "this.$" , parentClassName , ".constructor.call(this);" ) ; } var scriptClassName = out . scriptClassName ; if ( scriptClassName ) { out . writeln ( "this.$" , scriptClassName , ".constructor.call(this);" ) ; } out . decreaseIndent ( ) ; out . writeln ( "}," ) ; }
Write to the current block of the class writer the constructor of the class definition. The body of the
method contains a call to the parent constructor and a call to the script constructor.
@param {aria.templates.ClassWriter} out
@protected
Write to the current block of the class writer the constructor of the class definition . The body of the method contains a call to the parent constructor and a call to the script constructor .