Created
December 1, 2015 20:17
-
-
Save barelyknown/f1fe5387b0c6aee41ab6 to your computer and use it in GitHub Desktop.
authenticate-in-ember-using-a-url-parameter-4.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ApplicationController from './application'; | |
| ApplicationController.reopen({ | |
| unsetToken: Ember.observer('token', function() { | |
| if (this.get('token')) { | |
| Ember.run.next(this, function() { | |
| this.set('token', null); | |
| }); | |
| } | |
| }) | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment