Skip to content

Instantly share code, notes, and snippets.

@olivergeorge
Created July 3, 2012 07:04
Show Gist options
  • Save olivergeorge/3038187 to your computer and use it in GitHub Desktop.
Save olivergeorge/3038187 to your computer and use it in GitHub Desktop.
Demonstrate bug in IE8 focus - change handler blocking focus change?
<html>
<body>
<form>
<input name="input1" bindatom="bindings.input1">
<br/>
<input name="input2" bindatom="bindings.input2">
<br/>
<input type="submit">
</form>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="js/ie8-test.js" type="text/javascript"></script>
<script> $(function() {cljsbinding.boot();}) </script>
</body>
</html>
(defproject ie8-focus "1.0.0-SNAPSHOT"
:description "Demonstrate bug in IE8 focus - change handler blocking focus change?"
:dependencies [[org.clojure/clojure "1.3.0"]
[fluentsoftware/cljs-binding "1.0.0-SNAPSHOT"]]
:plugins [[lein-cljsbuild "0.2.1"]]
:cljsbuild {
:builds {
:dev
{:source-path "src/cljs"
:compiler {:output-to "public/js/ie8-focus.js"
:optimizations :whitespace
:pretty-print true}}}})
(ns bindings
(:require [cljsbinding :as binding]))
(def input1 (atom "one"))
(def input2 (atom "two"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment