Commit e34d97c0 authored by Yehuda Katz's avatar Yehuda Katz

Remove hardcoded RSVP reference

parent faddbb82
......@@ -39,7 +39,7 @@ if (typeof process !== 'undefined') {
};
}
RSVP.async = async;
exports.async = async;
var Event = exports.Event = function(type, options) {
this.type = type;
......@@ -184,7 +184,7 @@ Promise.prototype = {
},
resolve: function(value) {
RSVP.async(function() {
exports.async(function() {
this.trigger('promise:resolved', { detail: value });
this.isResolved = value;
}, this);
......@@ -194,7 +194,7 @@ Promise.prototype = {
},
reject: function(value) {
RSVP.async(function() {
exports.async(function() {
this.trigger('promise:failed', { detail: value });
this.isRejected = value;
}, this);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment