Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tools/jsdoc-toolkit/app/test/globals.js
blob: 3f83fb1f95fd8a0d8e0ee9cea4ec7ca188c09c9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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(){
}