Created
October 31, 2014 12:13
-
-
Save markprovan/a2cb14b4939dbeaa68f7 to your computer and use it in GitHub Desktop.
Context Error
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
actions: { | |
login: function() { | |
var data = {email: this.get("email"), password: this.get("password")} | |
var _this = this; | |
$.post( "http://localhost:3000/sessions/create", data, function( response ) { | |
store = _this.store // _this is undefined | |
}); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment