// Compiled by ClojureScript 0.0-2138
goog.provide('lt.objs.animations');
goog.require('cljs.core');
goog.require('lt.util.dom');
goog.require('lt.util.dom');
goog.require('lt.object');
goog.require('lt.object');
lt.objs.animations.$body = lt.util.dom.$.call(null,new cljs.core.Keyword(null,"body","body",1016933652));
lt.objs.animations.force_off = false;
lt.objs.animations.on = (function on(){if(cljs.core.truth_(lt.objs.animations.force_off))
{return null;
} else
{return lt.util.dom.add_class.call(null,lt.objs.animations.$body,new cljs.core.Keyword(null,"animated","animated",4513668373));
}
});
lt.objs.animations.off = (function off(){if(cljs.core.truth_(lt.objs.animations.force_off))
{return null;
} else
{return lt.util.dom.remove_class.call(null,lt.objs.animations.$body,new cljs.core.Keyword(null,"animated","animated",4513668373));
}
});
lt.objs.animations.on_QMARK_ = (function on_QMARK_(){if(cljs.core.truth_(lt.objs.animations.force_off))
{return null;
} else
{return lt.util.dom.has_class_QMARK_.call(null,lt.objs.animations.$body,new cljs.core.Keyword(null,"animated","animated",4513668373));
}
});
lt.objs.animations.__BEH__animate_on_init = (function __BEH__animate_on_init(app){return lt.objs.animations.on.call(null);
});
lt.object.behavior_STAR_.call(null,new cljs.core.Keyword("lt.objs.animations","animate-on-init","lt.objs.animations/animate-on-init",4259711187),new cljs.core.Keyword(null,"reaction","reaction",4441361819),lt.objs.animations.__BEH__animate_on_init,new cljs.core.Keyword(null,"triggers","triggers",2516997421),new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"init","init",1017141378),null], null), null));
lt.objs.animations.__BEH__toggle_animations = (function __BEH__toggle_animations(this$,active_QMARK_){lt.objs.animations.force_off = cljs.core.not.call(null,active_QMARK_);
if(cljs.core.truth_(active_QMARK_))
{return lt.objs.animations.on.call(null);
} else
{return lt.objs.animations.off.call(null);
}
});
lt.object.behavior_STAR_.call(null,new cljs.core.Keyword("lt.objs.animations","toggle-animations","lt.objs.animations/toggle-animations",1935503589),new cljs.core.Keyword(null,"reaction","reaction",4441361819),lt.objs.animations.__BEH__toggle_animations,new cljs.core.Keyword(null,"desc","desc",1016984067),"App: Enable or disable UI animations",new cljs.core.Keyword(null,"triggers","triggers",2516997421),new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"object.instant","object.instant",773332388),null], null), null),new cljs.core.Keyword(null,"type","type",1017479852),new cljs.core.Keyword(null,"user","user",1017503549));
