src/qwest.js
function(method) {
                        return function(url, data, options, before) {
                            var index = ++method_index;
                            ++loading;
                            promises.push(qwest(method, pinky.base + url, data, options, before).then(function(xhr, response) {
                                values[index] = arguments;
                                if(!--loading) {
                                    pinky(true, values.length == 1 ? values[0] : [values]);
                                }
                            }, function() {
                                pinky(false, arguments);
                            }));
                            return pinky;
                        };
                    }
function(method) {
                        return function(url, data, options, before) {
                            var index = ++method_index;
                            ++loading;
                            promises.push(qwest(method, pinky.base + url, data, options, before).then(function(xhr, response) {
                                values[index] = arguments;
                                if(!--loading) {
                                    pinky(true, values.length == 1 ? values[0] : [values]);
                                }
                            }, function() {
                                pinky(false, arguments);
                            }));
                            return pinky;
                        };
                    }
function ( method ) { return function ( url , data , options , before ) { var index = ++ method_index ; ++ loading ; promises . push ( qwest ( method , pinky . base + url , data , options , before ) . then ( function ( xhr , response ) { values [ index ] = arguments ; if ( ! -- loading ) { pinky ( true , values . length == 1 ? values [ 0 ] : [ values ] ) ; } } , function ( ) { pinky ( false , arguments ) ; } ) ) ; return pinky ; } ; }
Basic request method
Basic request method