UNPKG
cordova-sync
Version:
latest (1.0.1)
1.0.1
1.0.0
Respond to file changes and build Cordova application
cordova-sync
/
utils
/
promise.js
13 lines
(11 loc)
•
221 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
Promise
.
prototype
.
log
=
function
(
l
) {
return
this
.
then
(
function
(
v
) {
console
.
info
(l, v)
return
v }) }
Promise
.
prototype
.
err
=
function
(
l
) {
return
this
.
catch
(
function
(
e
) {
console
.
info
(l, e) }) }