reject
creates and rejects a promise
object reject(any reason);
| reason | any | the reason why the promise is rejected |
Example
webix.promise.reject("Incorrect value").then(
function(success){ /*not called*/ },
function(){
console.log(error); //"Incorrect value"
}
);
webix.promise.reject("Incorrect value").fail(function(error){
console.log(error); //"Incorrect value"
});
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support,
connect with other developers, and share your feedback there.