can.Control: {document} events are not working #534

Closed
whitecolor opened this Issue Nov 8, 2013 · 2 comments

Comments

Projects
None yet
3 participants
@whitecolor
Contributor

whitecolor commented Nov 8, 2013

'{document} mousemove' in can.Controls are not working in latest master.

If add option to Control {document: $(document)} they work.

@imjoshdean

This comment has been minimized.

Show comment
Hide comment
@imjoshdean

imjoshdean Nov 8, 2013

Contributor

I just pulled latest master and did the following test can.Control:

var Test = can.Control.extend({}, {
  init: function(el, ev) { },
  '{document} mousemove': function(el, ev) {
    console.log('triggered mousemove');
  }
})

and things seem to be kosher. This was fixed in 92e1822 though. Can you pull latest master again and confirm?

Contributor

imjoshdean commented Nov 8, 2013

I just pulled latest master and did the following test can.Control:

var Test = can.Control.extend({}, {
  init: function(el, ev) { },
  '{document} mousemove': function(el, ev) {
    console.log('triggered mousemove');
  }
})

and things seem to be kosher. This was fixed in 92e1822 though. Can you pull latest master again and confirm?

@daffl

This comment has been minimized.

Show comment
Hide comment
@daffl

daffl Nov 12, 2013

Contributor

This has been fixed with #531 and will be released with 2.0.1 tomorrow.

Contributor

daffl commented Nov 12, 2013

This has been fixed with #531 and will be released with 2.0.1 tomorrow.

@daffl daffl closed this Nov 12, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment