Create a JavaScript Object the JSAN Way
if (!this.AA) AA = {};
AA = function()
{
}
AA.prototype =
{
test: function()
{
document.writeln("test");
}
}
blah = new AA();
blah.test();
13460 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
if (!this.AA) AA = {};
AA = function()
{
}
AA.prototype =
{
test: function()
{
document.writeln("test");
}
}
blah = new AA();
blah.test();