Commit 4739c776 by Иван Кубота

Ajax support for POST FormData

parent 786a3ed6
......@@ -77,7 +77,7 @@
method = method || 'POST';
let stringData = '';
try{
stringData = JSON.stringify( data );
stringData = data instanceof FormData ? data : JSON.stringify( data );
cfg = transformCfg( cfg || {} );
cfg.url = url;
......
......@@ -24,7 +24,6 @@ var Observable = (function(){
}
},
fire: function( k ){
//console.log(k)
var listeners = this._listeners[ k ],
listener;
if( listeners === void 0 )
......
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