Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-activity-sdk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
2019-07-19 15:31:02 +0800
Commit
de30e3ed5ad50331f34c601194892587155217c7
1 parent
7d9a2d4c
fix promise catch
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
build/sdk.js
package.json
src/utils/promise.js
yarn.lock
build/sdk.js
View file @
de30e3e
This diff could not be displayed because it is too large.
package.json
View file @
de30e3e
{
"name"
:
"yoho-activity-sdk"
,
"version"
:
"1.1.
4
"
,
"version"
:
"1.1.
5
"
,
"description"
:
"YOHO!前端js的功能封装包,主要用于在活动页面中,对主要功能的封装。"
,
"keywords"
:
[
"YOHO!"
,
...
...
src/utils/promise.js
View file @
de30e3e
...
...
@@ -33,9 +33,11 @@ function Promise(fn) {
errback
(
promise
.
_reason
);
}
})
};
this
.
catch
=
function
(
onRejected
)
{
return
promise
.
then
(
undefined
,
onRejected
);
};
function
resolve
(
value
)
{
setTimeout
(
function
(){
...
...
yarn.lock
View file @
de30e3e
This diff could not be displayed because it is too large.
Please
register
or
login
to post a comment