var newclass = new Classname();
newclass.method.init();
function Classname () {
this.method = function () {
return {
init: function () {
alert();
}
}
}()
}
var newclass = new Classname();
newclass.method.init();
function Classname () {
this.method = function () {
return {
init: function () {
alert();
}
}
}
}