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]]
|
||||
[reagent.debug :refer-macros [dbg]]
|
||||
[clojure.string :as string]
|
||||
[goog.events :as events])
|
||||
[goog.events :as events]
|
||||
[goog.history.EventType :as hevt])
|
||||
(:import [goog History]
|
||||
[goog.history Html5History]
|
||||
[goog.history EventType]))
|
||||
[goog.history Html5History]))
|
||||
|
||||
(def page (atom ""))
|
||||
(def base-path (atom nil))
|
||||
|
@ -23,7 +23,7 @@
|
|||
|
||||
(defn setup-history []
|
||||
(when-let [h (create-history)]
|
||||
(events/listen h EventType/NAVIGATE
|
||||
(events/listen h hevt/NAVIGATE
|
||||
(fn [e]
|
||||
(reset! page (subs (.-token e)
|
||||
(count @base-path)))
|
||||
|
|
|
@ -4,13 +4,14 @@
|
|||
:license {:name "MIT"}
|
||||
:description "A simple ClojureScript interface to React"
|
||||
: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"]
|
||||
[com.cemerick/clojurescript.test "0.2.1"]]
|
||||
:profiles {:prod {:cljsbuild
|
||||
{:builds
|
||||
{:client {:compiler
|
||||
{:optimizations :advanced
|
||||
:elide-asserts true
|
||||
:preamble ^:replace ["reagent/react.min.js"]
|
||||
:pretty-print false}}}}}
|
||||
:test {:plugins [[com.cemerick/clojurescript.test "0.2.1"]]
|
||||
|
|
Loading…
Reference in New Issue