I\'m dealing with a problem about an Ajax callback inside of an Object. Please consider this code :
Search.prototype = { ask : function( query ) {
You can use the $.ajax() context object here like:
context
$.ajax({ url : 'http://api.deezer.com/search/track/', context: this, ... }).done(function (res) { this.loadResults( res ); });