blob: 149cd4148071a8d9efaa04c7de39c071f4018aa0 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
var ProjectList = View.extend({
el: ".projectList",
events: {
"mouseenter .room": 'enter',
"mouseleave .room": 'leave',
},
initialize: function(){
},
timeout: null,
enter: function(){
clearTimeout(this.timeout)
this.advance()
},
leave: function(){
clearTimeout(this.timeout)
},
advance: function(){
this.timeout = setTimeout(this.advance.bind(this), 500)
}
/*
spinOn: function(e){
var iframe = $(e.currentTarget).find("iframe").get('0')
if (! iframe) return
iframe.contentWindow.postMessage("spin-on", window.location.origin)
},
spinOff: function(e){
var iframe = $(e.currentTarget).find("iframe").get('0')
if (! iframe) return
iframe.contentWindow.postMessage("spin-off", window.location.origin)
}
*/
})
|