Comparing version 0.4.8 to 0.4.9
/** | ||
* @module vow | ||
* @author Filatov Dmitry <dfilatov@yandex-team.ru> | ||
* @version 0.4.8 | ||
* @version 0.4.9 | ||
* @license | ||
@@ -390,3 +390,3 @@ * Dual licensed under the MIT and GPL licenses: | ||
* | ||
* @param {Function} onResolved Callback that to be called with the value after promise has been rejected | ||
* @param {Function} onResolved Callback that to be called with the value after promise has been resolved | ||
* @param {Object} [ctx] Context of callback execution | ||
@@ -905,3 +905,3 @@ * @returns {vow:Promise} | ||
cast : function(value) { | ||
return vow.isPromise(value)? | ||
return value && !!value._vow? | ||
value : | ||
@@ -908,0 +908,0 @@ vow.resolve(value); |
{ | ||
"name" : "vow", | ||
"version" : "0.4.8", | ||
"version" : "0.4.9", | ||
"description" : "DOM Promise and Promises/A+ implementation for Node.js and browsers", | ||
@@ -5,0 +5,0 @@ "homepage" : "http://dfilatov.github.io/vow/", |
**NOTE**. Documentation for old versions of the library can be found at https://github.com/dfilatov/vow/blob/0.3.x/README.md. | ||
<a href="http://promises-aplus.github.com/promises-spec"><img src="http://promises-aplus.github.com/promises-spec/assets/logo-small.png" align="right" /></a> | ||
Vow 0.4.7 [![NPM version](https://badge.fury.io/js/vow.png)](http://badge.fury.io/js/vow) [![Build Status](https://secure.travis-ci.org/dfilatov/vow.png)](http://travis-ci.org/dfilatov/vow) | ||
Vow 0.4.8 [![NPM version](https://badge.fury.io/js/vow.png)](http://badge.fury.io/js/vow) [![Build Status](https://secure.travis-ci.org/dfilatov/vow.png)](http://travis-ci.org/dfilatov/vow) | ||
========= | ||
@@ -6,0 +6,0 @@ |
46685
5