var GameField function this setup GameField prototype setup function c

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
var GameField = function() {
this.setup();
};
GameField.prototype = {
setup: function() {
console.log('enter setup')
$('#bet_fields a').click(function() {
console.log('onclick');
return false;
});
console.log('leave setup')
}
};
gf = new GameField();