Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

添加一些逗号

  • Loading branch information...
commit 11379cce03feb39190df891f7215083374b72e9e 1 parent 0327c16
@RubyLouvre authored
Showing with 3 additions and 2 deletions.
  1. +1 −0  avalon.js
  2. +2 −2 avalon.router.js
View
1  avalon.js
@@ -1707,6 +1707,7 @@
avalon.bind(element, event, updateModel);
} else {
if (window.addEventListener) { //先执行W3C
+ console.log("ddddddddd")
element.addEventListener("input", updateModel, false);
} else {
element.attachEvent("onpropertychange", updateModel);
View
4 avalon.router.js
@@ -18,7 +18,7 @@ avalon.history = new function() {
var oldIE = !"1" [0];
var started = false;
var self = this;
- var firstCheck
+ var firstCheck;
var iframeWin, iframe, history_hash, timeoutID;
var last_hash = "#!" + getFragment();
var supportPushState = /[native code]/.test(history.pushState);
@@ -30,7 +30,7 @@ avalon.history = new function() {
if (!iframe && oldIE) {
iframe = document.createElement("iframe");
iframe.tabIndex = -1;
- iframe.style.display = "none"
+ iframe.style.display = "none";
iframe.src = "javascript:false";
(document.body || document.documentElement).appendChild(iframe);
var doc = iframe.contentDocument || iframe.contentWindow.document;
Please sign in to comment.
Something went wrong with that request. Please try again.