Skip to content

Commit

Permalink
bump to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
mikub committed Nov 8, 2018
1 parent 306c23b commit 2cffd08
Show file tree
Hide file tree
Showing 58 changed files with 13,452 additions and 13,367 deletions.
956 changes: 478 additions & 478 deletions public/js/out/ajax/core.js

Large diffs are not rendered by default.

40 changes: 20 additions & 20 deletions public/js/out/ajax/edn.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ ajax.edn.edn_read = (function ajax$edn$edn_read(xhrio){
return cljs.reader.read_string.call(null,ajax.protocols._body.call(null,xhrio));
});
ajax.edn.edn_response_format = (function ajax$edn$edn_response_format(){
var args11790 = [];
var len__6047__auto___11793 = arguments.length;
var i__6048__auto___11794 = (0);
var args11807 = [];
var len__6047__auto___11810 = arguments.length;
var i__6048__auto___11811 = (0);
while(true){
if((i__6048__auto___11794 < len__6047__auto___11793)){
args11790.push((arguments[i__6048__auto___11794]));
if((i__6048__auto___11811 < len__6047__auto___11810)){
args11807.push((arguments[i__6048__auto___11811]));

var G__11795 = (i__6048__auto___11794 + (1));
i__6048__auto___11794 = G__11795;
var G__11812 = (i__6048__auto___11811 + (1));
i__6048__auto___11811 = G__11812;
continue;
} else {
}
break;
}

var G__11792 = args11790.length;
switch (G__11792) {
var G__11809 = args11807.length;
switch (G__11809) {
case 0:
return ajax.edn.edn_response_format.cljs$core$IFn$_invoke$arity$0();

Expand All @@ -34,7 +34,7 @@ return ajax.edn.edn_response_format.cljs$core$IFn$_invoke$arity$1((arguments[(0)

break;
default:
throw (new Error([cljs.core.str("Invalid arity: "),cljs.core.str(args11790.length)].join('')));
throw (new Error([cljs.core.str("Invalid arity: "),cljs.core.str(args11807.length)].join('')));

}
});
Expand All @@ -49,23 +49,23 @@ return ajax.edn.edn_response_format.call(null);

ajax.edn.edn_response_format.cljs$lang$maxFixedArity = 1;
ajax.edn.edn_request_format = (function ajax$edn$edn_request_format(){
var args11797 = [];
var len__6047__auto___11800 = arguments.length;
var i__6048__auto___11801 = (0);
var args11814 = [];
var len__6047__auto___11817 = arguments.length;
var i__6048__auto___11818 = (0);
while(true){
if((i__6048__auto___11801 < len__6047__auto___11800)){
args11797.push((arguments[i__6048__auto___11801]));
if((i__6048__auto___11818 < len__6047__auto___11817)){
args11814.push((arguments[i__6048__auto___11818]));

var G__11802 = (i__6048__auto___11801 + (1));
i__6048__auto___11801 = G__11802;
var G__11819 = (i__6048__auto___11818 + (1));
i__6048__auto___11818 = G__11819;
continue;
} else {
}
break;
}

var G__11799 = args11797.length;
switch (G__11799) {
var G__11816 = args11814.length;
switch (G__11816) {
case 0:
return ajax.edn.edn_request_format.cljs$core$IFn$_invoke$arity$0();

Expand All @@ -75,7 +75,7 @@ return ajax.edn.edn_request_format.cljs$core$IFn$_invoke$arity$1((arguments[(0)]

break;
default:
throw (new Error([cljs.core.str("Invalid arity: "),cljs.core.str(args11797.length)].join('')));
throw (new Error([cljs.core.str("Invalid arity: "),cljs.core.str(args11814.length)].join('')));

}
});
Expand Down
50 changes: 25 additions & 25 deletions public/js/out/ajax/protocols.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,11 +258,11 @@ var this__5603__auto____$1 = this;
return cljs.core._lookup.call(null,this__5603__auto____$1,k__5604__auto__,null);
});

ajax.protocols.Response.prototype.cljs$core$ILookup$_lookup$arity$3 = (function (this__5605__auto__,k11742,else__5606__auto__){
ajax.protocols.Response.prototype.cljs$core$ILookup$_lookup$arity$3 = (function (this__5605__auto__,k11759,else__5606__auto__){
var self__ = this;
var this__5605__auto____$1 = this;
var G__11744 = (((k11742 instanceof cljs.core.Keyword))?k11742.fqn:null);
switch (G__11744) {
var G__11761 = (((k11759 instanceof cljs.core.Keyword))?k11759.fqn:null);
switch (G__11761) {
case "status":
return self__.status;

Expand All @@ -284,7 +284,7 @@ return self__.was_aborted;

break;
default:
return cljs.core.get.call(null,self__.__extmap,k11742,else__5606__auto__);
return cljs.core.get.call(null,self__.__extmap,k11759,else__5606__auto__);

}
});
Expand All @@ -302,10 +302,10 @@ return cljs.core.pr_sequential_writer.call(null,writer__5618__auto__,pr_pair__56

ajax.protocols.Response.prototype.cljs$core$IIterable$ = true;

ajax.protocols.Response.prototype.cljs$core$IIterable$_iterator$arity$1 = (function (G__11741){
ajax.protocols.Response.prototype.cljs$core$IIterable$_iterator$arity$1 = (function (G__11758){
var self__ = this;
var G__11741__$1 = this;
return (new cljs.core.RecordIter((0),G__11741__$1,5,new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"status","status",-1997798413),new cljs.core.Keyword(null,"body","body",-2049205669),new cljs.core.Keyword(null,"status-text","status-text",-1834235478),new cljs.core.Keyword(null,"headers","headers",-835030129),new cljs.core.Keyword(null,"was-aborted","was-aborted",-2120084828)], null),cljs.core._iterator.call(null,self__.__extmap)));
var G__11758__$1 = this;
return (new cljs.core.RecordIter((0),G__11758__$1,5,new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"status","status",-1997798413),new cljs.core.Keyword(null,"body","body",-2049205669),new cljs.core.Keyword(null,"status-text","status-text",-1834235478),new cljs.core.Keyword(null,"headers","headers",-835030129),new cljs.core.Keyword(null,"was-aborted","was-aborted",-2120084828)], null),cljs.core._iterator.call(null,self__.__extmap)));
});

ajax.protocols.Response.prototype.cljs$core$IMeta$_meta$arity$1 = (function (this__5601__auto__){
Expand Down Expand Up @@ -403,27 +403,27 @@ return (new ajax.protocols.Response(self__.status,self__.body,self__.status_text
}
});

ajax.protocols.Response.prototype.cljs$core$IAssociative$_assoc$arity$3 = (function (this__5610__auto__,k__5611__auto__,G__11741){
ajax.protocols.Response.prototype.cljs$core$IAssociative$_assoc$arity$3 = (function (this__5610__auto__,k__5611__auto__,G__11758){
var self__ = this;
var this__5610__auto____$1 = this;
var pred__11745 = cljs.core.keyword_identical_QMARK_;
var expr__11746 = k__5611__auto__;
if(cljs.core.truth_(pred__11745.call(null,new cljs.core.Keyword(null,"status","status",-1997798413),expr__11746))){
return (new ajax.protocols.Response(G__11741,self__.body,self__.status_text,self__.headers,self__.was_aborted,self__.__meta,self__.__extmap,null));
var pred__11762 = cljs.core.keyword_identical_QMARK_;
var expr__11763 = k__5611__auto__;
if(cljs.core.truth_(pred__11762.call(null,new cljs.core.Keyword(null,"status","status",-1997798413),expr__11763))){
return (new ajax.protocols.Response(G__11758,self__.body,self__.status_text,self__.headers,self__.was_aborted,self__.__meta,self__.__extmap,null));
} else {
if(cljs.core.truth_(pred__11745.call(null,new cljs.core.Keyword(null,"body","body",-2049205669),expr__11746))){
return (new ajax.protocols.Response(self__.status,G__11741,self__.status_text,self__.headers,self__.was_aborted,self__.__meta,self__.__extmap,null));
if(cljs.core.truth_(pred__11762.call(null,new cljs.core.Keyword(null,"body","body",-2049205669),expr__11763))){
return (new ajax.protocols.Response(self__.status,G__11758,self__.status_text,self__.headers,self__.was_aborted,self__.__meta,self__.__extmap,null));
} else {
if(cljs.core.truth_(pred__11745.call(null,new cljs.core.Keyword(null,"status-text","status-text",-1834235478),expr__11746))){
return (new ajax.protocols.Response(self__.status,self__.body,G__11741,self__.headers,self__.was_aborted,self__.__meta,self__.__extmap,null));
if(cljs.core.truth_(pred__11762.call(null,new cljs.core.Keyword(null,"status-text","status-text",-1834235478),expr__11763))){
return (new ajax.protocols.Response(self__.status,self__.body,G__11758,self__.headers,self__.was_aborted,self__.__meta,self__.__extmap,null));
} else {
if(cljs.core.truth_(pred__11745.call(null,new cljs.core.Keyword(null,"headers","headers",-835030129),expr__11746))){
return (new ajax.protocols.Response(self__.status,self__.body,self__.status_text,G__11741,self__.was_aborted,self__.__meta,self__.__extmap,null));
if(cljs.core.truth_(pred__11762.call(null,new cljs.core.Keyword(null,"headers","headers",-835030129),expr__11763))){
return (new ajax.protocols.Response(self__.status,self__.body,self__.status_text,G__11758,self__.was_aborted,self__.__meta,self__.__extmap,null));
} else {
if(cljs.core.truth_(pred__11745.call(null,new cljs.core.Keyword(null,"was-aborted","was-aborted",-2120084828),expr__11746))){
return (new ajax.protocols.Response(self__.status,self__.body,self__.status_text,self__.headers,G__11741,self__.__meta,self__.__extmap,null));
if(cljs.core.truth_(pred__11762.call(null,new cljs.core.Keyword(null,"was-aborted","was-aborted",-2120084828),expr__11763))){
return (new ajax.protocols.Response(self__.status,self__.body,self__.status_text,self__.headers,G__11758,self__.__meta,self__.__extmap,null));
} else {
return (new ajax.protocols.Response(self__.status,self__.body,self__.status_text,self__.headers,self__.was_aborted,self__.__meta,cljs.core.assoc.call(null,self__.__extmap,k__5611__auto__,G__11741),null));
return (new ajax.protocols.Response(self__.status,self__.body,self__.status_text,self__.headers,self__.was_aborted,self__.__meta,cljs.core.assoc.call(null,self__.__extmap,k__5611__auto__,G__11758),null));
}
}
}
Expand All @@ -437,10 +437,10 @@ var this__5615__auto____$1 = this;
return cljs.core.seq.call(null,cljs.core.concat.call(null,new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [(new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"status","status",-1997798413),self__.status],null)),(new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"body","body",-2049205669),self__.body],null)),(new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"status-text","status-text",-1834235478),self__.status_text],null)),(new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"headers","headers",-835030129),self__.headers],null)),(new cljs.core.PersistentVector(null,2,(5),cljs.core.PersistentVector.EMPTY_NODE,[new cljs.core.Keyword(null,"was-aborted","was-aborted",-2120084828),self__.was_aborted],null))], null),self__.__extmap));
});

ajax.protocols.Response.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (this__5602__auto__,G__11741){
ajax.protocols.Response.prototype.cljs$core$IWithMeta$_with_meta$arity$2 = (function (this__5602__auto__,G__11758){
var self__ = this;
var this__5602__auto____$1 = this;
return (new ajax.protocols.Response(self__.status,self__.body,self__.status_text,self__.headers,self__.was_aborted,G__11741,self__.__extmap,self__.__hash));
return (new ajax.protocols.Response(self__.status,self__.body,self__.status_text,self__.headers,self__.was_aborted,G__11758,self__.__extmap,self__.__hash));
});

ajax.protocols.Response.prototype.cljs$core$ICollection$_conj$arity$2 = (function (this__5608__auto__,entry__5609__auto__){
Expand Down Expand Up @@ -471,7 +471,7 @@ ajax.protocols.__GT_Response = (function ajax$protocols$__GT_Response(status,bod
return (new ajax.protocols.Response(status,body,status_text,headers,was_aborted,null,null,null));
});

ajax.protocols.map__GT_Response = (function ajax$protocols$map__GT_Response(G__11743){
return (new ajax.protocols.Response(new cljs.core.Keyword(null,"status","status",-1997798413).cljs$core$IFn$_invoke$arity$1(G__11743),new cljs.core.Keyword(null,"body","body",-2049205669).cljs$core$IFn$_invoke$arity$1(G__11743),new cljs.core.Keyword(null,"status-text","status-text",-1834235478).cljs$core$IFn$_invoke$arity$1(G__11743),new cljs.core.Keyword(null,"headers","headers",-835030129).cljs$core$IFn$_invoke$arity$1(G__11743),new cljs.core.Keyword(null,"was-aborted","was-aborted",-2120084828).cljs$core$IFn$_invoke$arity$1(G__11743),null,cljs.core.dissoc.call(null,G__11743,new cljs.core.Keyword(null,"status","status",-1997798413),new cljs.core.Keyword(null,"body","body",-2049205669),new cljs.core.Keyword(null,"status-text","status-text",-1834235478),new cljs.core.Keyword(null,"headers","headers",-835030129),new cljs.core.Keyword(null,"was-aborted","was-aborted",-2120084828)),null));
ajax.protocols.map__GT_Response = (function ajax$protocols$map__GT_Response(G__11760){
return (new ajax.protocols.Response(new cljs.core.Keyword(null,"status","status",-1997798413).cljs$core$IFn$_invoke$arity$1(G__11760),new cljs.core.Keyword(null,"body","body",-2049205669).cljs$core$IFn$_invoke$arity$1(G__11760),new cljs.core.Keyword(null,"status-text","status-text",-1834235478).cljs$core$IFn$_invoke$arity$1(G__11760),new cljs.core.Keyword(null,"headers","headers",-835030129).cljs$core$IFn$_invoke$arity$1(G__11760),new cljs.core.Keyword(null,"was-aborted","was-aborted",-2120084828).cljs$core$IFn$_invoke$arity$1(G__11760),null,cljs.core.dissoc.call(null,G__11760,new cljs.core.Keyword(null,"status","status",-1997798413),new cljs.core.Keyword(null,"body","body",-2049205669),new cljs.core.Keyword(null,"status-text","status-text",-1834235478),new cljs.core.Keyword(null,"headers","headers",-835030129),new cljs.core.Keyword(null,"was-aborted","was-aborted",-2120084828)),null));
});

68 changes: 34 additions & 34 deletions public/js/out/ajax/xhrio.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,38 +11,38 @@ goog.require('ajax.protocols');
goog.require('goog.net.ErrorCode');
goog.net.XhrIo.prototype.ajax$protocols$AjaxImpl$ = true;

goog.net.XhrIo.prototype.ajax$protocols$AjaxImpl$_js_ajax_request$arity$3 = (function (this$,p__11722,handler){
var map__11723 = p__11722;
var map__11723__$1 = ((((!((map__11723 == null)))?((((map__11723.cljs$lang$protocol_mask$partition0$ & (64))) || (map__11723.cljs$core$ISeq$))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__11723):map__11723);
var uri = cljs.core.get.call(null,map__11723__$1,new cljs.core.Keyword(null,"uri","uri",-774711847));
var method = cljs.core.get.call(null,map__11723__$1,new cljs.core.Keyword(null,"method","method",55703592));
var body = cljs.core.get.call(null,map__11723__$1,new cljs.core.Keyword(null,"body","body",-2049205669));
var headers = cljs.core.get.call(null,map__11723__$1,new cljs.core.Keyword(null,"headers","headers",-835030129));
var timeout = cljs.core.get.call(null,map__11723__$1,new cljs.core.Keyword(null,"timeout","timeout",-318625318),(0));
var with_credentials = cljs.core.get.call(null,map__11723__$1,new cljs.core.Keyword(null,"with-credentials","with-credentials",-1163127235),false);
var response_format = cljs.core.get.call(null,map__11723__$1,new cljs.core.Keyword(null,"response-format","response-format",1664465322));
goog.net.XhrIo.prototype.ajax$protocols$AjaxImpl$_js_ajax_request$arity$3 = (function (this$,p__11739,handler){
var map__11740 = p__11739;
var map__11740__$1 = ((((!((map__11740 == null)))?((((map__11740.cljs$lang$protocol_mask$partition0$ & (64))) || (map__11740.cljs$core$ISeq$))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__11740):map__11740);
var uri = cljs.core.get.call(null,map__11740__$1,new cljs.core.Keyword(null,"uri","uri",-774711847));
var method = cljs.core.get.call(null,map__11740__$1,new cljs.core.Keyword(null,"method","method",55703592));
var body = cljs.core.get.call(null,map__11740__$1,new cljs.core.Keyword(null,"body","body",-2049205669));
var headers = cljs.core.get.call(null,map__11740__$1,new cljs.core.Keyword(null,"headers","headers",-835030129));
var timeout = cljs.core.get.call(null,map__11740__$1,new cljs.core.Keyword(null,"timeout","timeout",-318625318),(0));
var with_credentials = cljs.core.get.call(null,map__11740__$1,new cljs.core.Keyword(null,"with-credentials","with-credentials",-1163127235),false);
var response_format = cljs.core.get.call(null,map__11740__$1,new cljs.core.Keyword(null,"response-format","response-format",1664465322));
var this$__$1 = this;
var temp__4425__auto___11726 = new cljs.core.Keyword(null,"type","type",1174270348).cljs$core$IFn$_invoke$arity$1(response_format);
if(cljs.core.truth_(temp__4425__auto___11726)){
var response_type_11727 = temp__4425__auto___11726;
this$__$1.setResponseType(cljs.core.name.call(null,response_type_11727));
var temp__4425__auto___11743 = new cljs.core.Keyword(null,"type","type",1174270348).cljs$core$IFn$_invoke$arity$1(response_format);
if(cljs.core.truth_(temp__4425__auto___11743)){
var response_type_11744 = temp__4425__auto___11743;
this$__$1.setResponseType(cljs.core.name.call(null,response_type_11744));
} else {
}

var G__11725 = this$__$1;
goog.events.listen(G__11725,goog.net.EventType.COMPLETE,((function (G__11725,this$__$1,map__11723,map__11723__$1,uri,method,body,headers,timeout,with_credentials,response_format){
return (function (p1__11721_SHARP_){
return handler.call(null,p1__11721_SHARP_.target);
});})(G__11725,this$__$1,map__11723,map__11723__$1,uri,method,body,headers,timeout,with_credentials,response_format))
var G__11742 = this$__$1;
goog.events.listen(G__11742,goog.net.EventType.COMPLETE,((function (G__11742,this$__$1,map__11740,map__11740__$1,uri,method,body,headers,timeout,with_credentials,response_format){
return (function (p1__11738_SHARP_){
return handler.call(null,p1__11738_SHARP_.target);
});})(G__11742,this$__$1,map__11740,map__11740__$1,uri,method,body,headers,timeout,with_credentials,response_format))
);

G__11725.setTimeoutInterval(timeout);
G__11742.setTimeoutInterval(timeout);

G__11725.setWithCredentials(with_credentials);
G__11742.setWithCredentials(with_credentials);

G__11725.send(uri,method,body,cljs.core.clj__GT_js.call(null,headers));
G__11742.send(uri,method,body,cljs.core.clj__GT_js.call(null,headers));

return G__11725;
return G__11742;
});

goog.net.XhrIo.prototype.ajax$protocols$AjaxRequest$ = true;
Expand Down Expand Up @@ -80,17 +80,17 @@ return cljs.core._EQ_.call(null,this$__$1.getLastErrorCode(),goog.net.ErrorCode.
});
goog.net.XhrManager.prototype.ajax$protocols$AjaxImpl$ = true;

goog.net.XhrManager.prototype.ajax$protocols$AjaxImpl$_js_ajax_request$arity$3 = (function (this$,p__11728,handler){
var map__11729 = p__11728;
var map__11729__$1 = ((((!((map__11729 == null)))?((((map__11729.cljs$lang$protocol_mask$partition0$ & (64))) || (map__11729.cljs$core$ISeq$))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__11729):map__11729);
var uri = cljs.core.get.call(null,map__11729__$1,new cljs.core.Keyword(null,"uri","uri",-774711847));
var method = cljs.core.get.call(null,map__11729__$1,new cljs.core.Keyword(null,"method","method",55703592));
var body = cljs.core.get.call(null,map__11729__$1,new cljs.core.Keyword(null,"body","body",-2049205669));
var headers = cljs.core.get.call(null,map__11729__$1,new cljs.core.Keyword(null,"headers","headers",-835030129));
var id = cljs.core.get.call(null,map__11729__$1,new cljs.core.Keyword(null,"id","id",-1388402092));
var timeout = cljs.core.get.call(null,map__11729__$1,new cljs.core.Keyword(null,"timeout","timeout",-318625318),(0));
var priority = cljs.core.get.call(null,map__11729__$1,new cljs.core.Keyword(null,"priority","priority",1431093715));
var max_retries = cljs.core.get.call(null,map__11729__$1,new cljs.core.Keyword(null,"max-retries","max-retries",-1933762121));
goog.net.XhrManager.prototype.ajax$protocols$AjaxImpl$_js_ajax_request$arity$3 = (function (this$,p__11745,handler){
var map__11746 = p__11745;
var map__11746__$1 = ((((!((map__11746 == null)))?((((map__11746.cljs$lang$protocol_mask$partition0$ & (64))) || (map__11746.cljs$core$ISeq$))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__11746):map__11746);
var uri = cljs.core.get.call(null,map__11746__$1,new cljs.core.Keyword(null,"uri","uri",-774711847));
var method = cljs.core.get.call(null,map__11746__$1,new cljs.core.Keyword(null,"method","method",55703592));
var body = cljs.core.get.call(null,map__11746__$1,new cljs.core.Keyword(null,"body","body",-2049205669));
var headers = cljs.core.get.call(null,map__11746__$1,new cljs.core.Keyword(null,"headers","headers",-835030129));
var id = cljs.core.get.call(null,map__11746__$1,new cljs.core.Keyword(null,"id","id",-1388402092));
var timeout = cljs.core.get.call(null,map__11746__$1,new cljs.core.Keyword(null,"timeout","timeout",-318625318),(0));
var priority = cljs.core.get.call(null,map__11746__$1,new cljs.core.Keyword(null,"priority","priority",1431093715));
var max_retries = cljs.core.get.call(null,map__11746__$1,new cljs.core.Keyword(null,"max-retries","max-retries",-1933762121));
var this$__$1 = this;
return this$__$1.send(id,uri,method,body,cljs.core.clj__GT_js.call(null,headers),priority,handler,max_retries);
});
Loading

0 comments on commit 2cffd08

Please sign in to comment.