Created
July 3, 2012 07:04
-
-
Save olivergeorge/3038187 to your computer and use it in GitHub Desktop.
Demonstrate bug in IE8 focus - change handler blocking focus change?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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}}}}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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