Skip to content

Commit

Permalink
Remove deprecation warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseldredge committed Jan 18, 2014
1 parent dd86def commit 29a0abe
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions app/js/restApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,21 +96,8 @@ var RestApi = Ember.Deferred.extend({

var href = this._replaceParameters(api, options);

if (options.fail) {
console.warn('DEPRECATION: clients should not specify ajax fail handlers.');
}

if (options.success) {
console.warn('DEPRECATION: clients should not specify ajax success handlers.');
}

return Ember.Deferred.promise(function(deferred) {
var old = options.success;
options.success = function(data) {
if (old) {
console.log('invoke old success handler');
old.apply(this, arguments);
}
deferred.resolve(data);
};

Expand Down

0 comments on commit 29a0abe

Please sign in to comment.