mirror of https://github.com/status-im/reagent.git
Update to ClojureScript 2156
This commit is contained in:
parent
aca69347b7
commit
581cbf84be
|
@ -2,10 +2,10 @@
|
||||||
(:require [reagent.core :as reagent :refer [atom partial]]
|
(:require [reagent.core :as reagent :refer [atom partial]]
|
||||||
[reagent.debug :refer-macros [dbg]]
|
[reagent.debug :refer-macros [dbg]]
|
||||||
[clojure.string :as string]
|
[clojure.string :as string]
|
||||||
[goog.events :as events])
|
[goog.events :as events]
|
||||||
|
[goog.history.EventType :as hevt])
|
||||||
(:import [goog History]
|
(:import [goog History]
|
||||||
[goog.history Html5History]
|
[goog.history Html5History]))
|
||||||
[goog.history EventType]))
|
|
||||||
|
|
||||||
(def page (atom ""))
|
(def page (atom ""))
|
||||||
(def base-path (atom nil))
|
(def base-path (atom nil))
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
(defn setup-history []
|
(defn setup-history []
|
||||||
(when-let [h (create-history)]
|
(when-let [h (create-history)]
|
||||||
(events/listen h EventType/NAVIGATE
|
(events/listen h hevt/NAVIGATE
|
||||||
(fn [e]
|
(fn [e]
|
||||||
(reset! page (subs (.-token e)
|
(reset! page (subs (.-token e)
|
||||||
(count @base-path)))
|
(count @base-path)))
|
||||||
|
|
|
@ -4,13 +4,14 @@
|
||||||
:license {:name "MIT"}
|
:license {:name "MIT"}
|
||||||
:description "A simple ClojureScript interface to React"
|
:description "A simple ClojureScript interface to React"
|
||||||
:dependencies [[org.clojure/clojure "1.5.1"]
|
:dependencies [[org.clojure/clojure "1.5.1"]
|
||||||
[org.clojure/clojurescript "0.0-2138"]]
|
[org.clojure/clojurescript "0.0-2156"]]
|
||||||
:plugins [[lein-cljsbuild "1.0.1"]
|
:plugins [[lein-cljsbuild "1.0.1"]
|
||||||
[com.cemerick/clojurescript.test "0.2.1"]]
|
[com.cemerick/clojurescript.test "0.2.1"]]
|
||||||
:profiles {:prod {:cljsbuild
|
:profiles {:prod {:cljsbuild
|
||||||
{:builds
|
{:builds
|
||||||
{:client {:compiler
|
{:client {:compiler
|
||||||
{:optimizations :advanced
|
{:optimizations :advanced
|
||||||
|
:elide-asserts true
|
||||||
:preamble ^:replace ["reagent/react.min.js"]
|
:preamble ^:replace ["reagent/react.min.js"]
|
||||||
:pretty-print false}}}}}
|
:pretty-print false}}}}}
|
||||||
:test {:plugins [[com.cemerick/clojurescript.test "0.2.1"]]
|
:test {:plugins [[com.cemerick/clojurescript.test "0.2.1"]]
|
||||||
|
|
Loading…
Reference in New Issue