View difference between Paste ID: AxmkC7be and kDTcAwG3
SHOW: | | - or go back to the newest paste.
1
var mylib;
2
3
(function() {
4
	var variable1 = null;
5
	var variable2 = null;
6
	var variable3 = null;
7-
	//...
7+
8
	window.mylib = {
9
		func1: function(event) {
10-
		func1: function() {
10+
11
		func2: function() { 
12
		},
13
		func3: function() { 
14
		}
15
	};
16
17
	function privateFunc1() {
18
	}
19-
		//...
19+
20
	function privateFunc2() {
21
	}
22
23-
		//...
23+
24
	}
25
26
	addEventListener("storage", mylib.func1);
27-
		//...
27+
	addEventListener("unload", mylib.func1);
28
})();