Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Start listening for event in Control.

$
0
0
Hi,
sorry for the late reply :).

i want to do something like this:

a = can.Control({},{

'#id1 mousedown': function(){
      this.options.evt = "mousemove";
}
'#id2 {evt}': function(){ ... }

});

only when i keep the mouse down on a DIV to start listening on mousemove on another DIV.

Viewing all articles
Browse latest Browse all 3491

Trending Articles