SuperX-Kernmodul
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
756 B

/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
function foo(){
print("foo");
}
// NOTE: the following implementation of the class that builds bar works.
function tbar(){
// empty class
}
tbar.prototype.baz = function(){
print("bar.baz");
}
var bar = new tbar();
/*
// NOTE: ...on the other hand, this styntax gets entirely mangled
bar = new function(){ // singleton
this.baz = function(){
print("bar.baz");
}
}
*/
/*
// NOTE: this confsues jslink.pl right now.
xyzzy = function(){
print("this shouldn't be included!");
}
*/