paste.chapril.org-privatebin/jsdoc_toolkit-2.3.3-beta/app/test/globals.js

25 lines
483 B
JavaScript
Raw Normal View History

2010-05-27 00:34:42 +02:00
function example(/**Circle*/a, b) {
/** a global defined in function */
var number = a;
var hideNumber = function(){
}
setNumber = function(){
}
alert('You have chosen: ' + b);
}
function initPage() {
var supported = document.createElement && document.getElementsByTagName;
if (!supported) return;
// start of DOM script
var x = document.getElementById('writeroot');
// etc.
}
/** an example var */
var document = new Document(x, y);
var getNumber = function(){
}