blob: 950ae392278fdbb272c279276a74682ea0f42ff6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Functions which have been marked as singletons should not be cloned.
BeatDetektor = function()
{
this.config = BeatDetektor.config;
assertEq(this.config.a, 0);
assertEq(this.config.b, 1);
}
BeatDetektor.config_default = { a:0, b:1 };
BeatDetektor.config = BeatDetektor.config_default;
var bd = new BeatDetektor();
assertEq(bd.config === BeatDetektor.config, true);
|