Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

Allow for document and window event binds #395

Open
kpdecker opened this issue Oct 22, 2014 · 1 comment
Open

Allow for document and window event binds #395

kpdecker opened this issue Oct 22, 2014 · 1 comment
Labels
Milestone

Comments

@kpdecker
Copy link
Contributor

Should provide a way for views to register global event handlers while they are active so init and cleanup boilerplate are not needed in views.

One possible syntax:

events: {
  window: {
    'resize': function() {}
  },
  document: {
    keyup: function() {}
  }
}
@loun4
Copy link
Contributor

loun4 commented Oct 28, 2014

+1 !

@kpdecker kpdecker added this to the 3.1 milestone Nov 30, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants