dimanche 23 octobre 2016

Extend ember class on condition

Is it possible to extend Ember class on condition? Something like this:

A.reopen({
  if (condition) {
    init: function() {
      this.super();
      // some functionality
    }.on('didInsertElement');
  }
})




Aucun commentaire:

Enregistrer un commentaire