C
Carl Forsman
Is the following standard javascript syntax? I don't seem to see it
define package and class this way in my textbook
$package("gamespot");
$class("NewsDB", {
singleton : $static(null),
url : $static("aaa.com"),
channelGuide : $static(["home", "games", "reviews", "news",
"video"]),
infoGuide : $static(["article", "review"]),
platforms : $static({"All":null, "PC":"pc", "XBOX 360": "xbox360",
"Wii": "wii", "PS3" : "ps3", "PSP" : "psp", "DS" : "ds"}),
numberToStore : $static(15),
$constructor : function() {
}
// some functions
gamespot.NewsDB.initialize();
$package("");
define package and class this way in my textbook
$package("gamespot");
$class("NewsDB", {
singleton : $static(null),
url : $static("aaa.com"),
channelGuide : $static(["home", "games", "reviews", "news",
"video"]),
infoGuide : $static(["article", "review"]),
platforms : $static({"All":null, "PC":"pc", "XBOX 360": "xbox360",
"Wii": "wii", "PS3" : "ps3", "PSP" : "psp", "DS" : "ds"}),
numberToStore : $static(15),
$constructor : function() {
}
// some functions
gamespot.NewsDB.initialize();
$package("");