Skip to content

Instantly share code, notes, and snippets.

@zzarcon
Created February 12, 2016 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zzarcon/711285d0e6e1b9c8c23c to your computer and use it in GitHub Desktop.
Save zzarcon/711285d0e6e1b9c8c23c to your computer and use it in GitHub Desktop.
Ember.LinkView.reopen({
willRender() {
const route = this.attrs.params[0];
let params = this.attrs.params[1];
if (params instanceof Array) {
this.attrs.params = [].concat.apply([route], params);
}
return this._super(...arguments);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment