mercredi 17 juin 2015

How to reproduce a global click handler with ember 1.13 (not using views)

I'm working through the usual ember 1.13 deprecations and found that this was a quick/easy way to add a global "click" listener back in ember 1.x (pre glimmer)

var ApplicationView = Ember.View.extend({
    click: function(event) {   
        this.get("controller").set("wat", true);
    }
}); 

But now that views are "out" where should this click listener live? I'm using the latest ember-cli / ember 1.13.1 at the time of writing this




Aucun commentaire:

Enregistrer un commentaire