Commit aa37a0fc by Иван Кубота

Give it through Ajax.lastResponse :(

parent 5b589e39
......@@ -138,15 +138,16 @@
AsyncAjax[name] = function( url, data, cfg ){
return new Promise( function( resolve, reject ){
var handle = function( err, data ){
Ajax.lastResponse = data;
if( err ){
reject( data );
}else{
if(data.error){
reject( data.data, data );
reject( data.data );
}else if(data.error === false){
resolve( data.data, data );
resolve( data.data );
}else{
resolve( data, data );
resolve( data );
}
}
};
......
{
"name": "react-vanilla",
"version": "1.1.17",
"version": "1.1.18",
"description": "",
"main": "DOM.js",
"scripts": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment