Authored by yyq

fix promise catch

This diff could not be displayed because it is too large.
{
"name": "yoho-activity-sdk",
"version": "1.1.4",
"version": "1.1.5",
"description": "YOHO!前端js的功能封装包,主要用于在活动页面中,对主要功能的封装。",
"keywords": [
"YOHO!",
... ...
... ... @@ -33,9 +33,11 @@ function Promise(fn) {
errback(promise._reason);
}
})
};
this.catch = function(onRejected) {
return promise.then(undefined, onRejected);
};
function resolve(value) {
setTimeout(function(){
... ...
This diff could not be displayed because it is too large.