// Compiled by ClojureScript 0.0-2138
goog.provide('fetch.remotes');
goog.require('cljs.core');
goog.require('cljs.reader');
goog.require('cljs.reader');
goog.require('fetch.core');
goog.require('fetch.core');
fetch.remotes.remote_uri = "/_fetch";
fetch.remotes.remote_callback = (function remote_callback(remote,params,callback){return fetch.core.xhr.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"post","post",1017351186),fetch.remotes.remote_uri], null),new cljs.core.PersistentArrayMap(null, 2, [new cljs.core.Keyword(null,"remote","remote",4374260664),remote,new cljs.core.Keyword(null,"params","params",4313443576),cljs.core.pr_str.call(null,params)], null),(cljs.core.truth_(callback)?(function (data){var data__$1 = ((cljs.core._EQ_.call(null,data,""))?"nil":data);return callback.call(null,cljs.reader.read_string.call(null,data__$1));
}):null));
});
