Commit e34d97c0 authored by Yehuda Katz's avatar Yehuda Katz

Remove hardcoded RSVP reference

parent faddbb82
...@@ -39,7 +39,7 @@ if (typeof process !== 'undefined') { ...@@ -39,7 +39,7 @@ if (typeof process !== 'undefined') {
}; };
} }
RSVP.async = async; exports.async = async;
var Event = exports.Event = function(type, options) { var Event = exports.Event = function(type, options) {
this.type = type; this.type = type;
...@@ -184,7 +184,7 @@ Promise.prototype = { ...@@ -184,7 +184,7 @@ Promise.prototype = {
}, },
resolve: function(value) { resolve: function(value) {
RSVP.async(function() { exports.async(function() {
this.trigger('promise:resolved', { detail: value }); this.trigger('promise:resolved', { detail: value });
this.isResolved = value; this.isResolved = value;
}, this); }, this);
...@@ -194,7 +194,7 @@ Promise.prototype = { ...@@ -194,7 +194,7 @@ Promise.prototype = {
}, },
reject: function(value) { reject: function(value) {
RSVP.async(function() { exports.async(function() {
this.trigger('promise:failed', { detail: value }); this.trigger('promise:failed', { detail: value });
this.isRejected = value; this.isRejected = value;
}, this); }, 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