Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
qitmac000408 authored and qitmac000408 committed Sep 17, 2015
1 parent 54154a1 commit b2253d3
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 11 deletions.
6 changes: 4 additions & 2 deletions avalon.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
http://weibo.com/jslouvre/
Released under the MIT license
avalon.js 1.5.1 built in 2015.9.16
avalon.js 1.5.1 built in 2015.9.17
support IE6+ and other browsers
==================================================*/
(function(global, factory) {
Expand Down Expand Up @@ -4691,12 +4691,14 @@ avalon.directive("if", {
elem.required = false
elem.setAttribute("_required", "true")
}
if (elem.querySelectorAll) {
try {// 如果不支持querySelectorAll或:required,可以直接无视
avalon.each(elem.querySelectorAll(":required"), function (el) {
elem.required = false
el.setAttribute("_required", "true")
})
} catch (e) {
}

var node = binding.element = DOC.createComment("ms-if"),
pos = elem.nextSibling
binding.recoverNode = function () {
Expand Down
6 changes: 4 additions & 2 deletions dist/avalon.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
http://weibo.com/jslouvre/
Released under the MIT license
avalon.js 1.5.1 built in 2015.9.16
avalon.js 1.5.1 built in 2015.9.17
support IE6+ and other browsers
==================================================*/
(function(global, factory) {
Expand Down Expand Up @@ -4691,12 +4691,14 @@ avalon.directive("if", {
elem.required = false
elem.setAttribute("_required", "true")
}
if (elem.querySelectorAll) {
try {// 如果不支持querySelectorAll或:required,可以直接无视
avalon.each(elem.querySelectorAll(":required"), function (el) {
elem.required = false
el.setAttribute("_required", "true")
})
} catch (e) {
}

var node = binding.element = DOC.createComment("ms-if"),
pos = elem.nextSibling
binding.recoverNode = function () {
Expand Down
6 changes: 4 additions & 2 deletions dist/avalon.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
http://weibo.com/jslouvre/
Released under the MIT license
avalon.modern.js 1.5.1 built in 2015.9.16
avalon.modern.js 1.5.1 built in 2015.9.17
support IE10+ and other browsers
==================================================*/
(function(global, factory) {
Expand Down Expand Up @@ -4001,12 +4001,14 @@ avalon.directive("if", {
elem.required = false
elem.setAttribute("_required", "true")
}
if (elem.querySelectorAll) {
try {// 如果不支持querySelectorAll或:required,可以直接无视
avalon.each(elem.querySelectorAll(":required"), function (el) {
elem.required = false
el.setAttribute("_required", "true")
})
} catch (e) {
}

var node = binding.element = DOC.createComment("ms-if"),
pos = elem.nextSibling
binding.recoverNode = function () {
Expand Down
2 changes: 1 addition & 1 deletion dist/avalon.modern.min.js

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions dist/avalon.modern.shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
http://weibo.com/jslouvre/
Released under the MIT license
avalon.modern.shim.js 1.5.1 built in 2015.9.16
avalon.modern.shim.js 1.5.1 built in 2015.9.17
support IE10+ and other browsers
==================================================*/
(function(global, factory) {
Expand Down Expand Up @@ -4001,12 +4001,14 @@ avalon.directive("if", {
elem.required = false
elem.setAttribute("_required", "true")
}
if (elem.querySelectorAll) {
try {// 如果不支持querySelectorAll或:required,可以直接无视
avalon.each(elem.querySelectorAll(":required"), function (el) {
elem.required = false
el.setAttribute("_required", "true")
})
} catch (e) {
}

var node = binding.element = DOC.createComment("ms-if"),
pos = elem.nextSibling
binding.recoverNode = function () {
Expand Down
6 changes: 4 additions & 2 deletions dist/avalon.shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
http://weibo.com/jslouvre/
Released under the MIT license
avalon.shim.js 1.5.1 built in 2015.9.16
avalon.shim.js 1.5.1 built in 2015.9.17
support IE6+ and other browsers
==================================================*/
(function(global, factory) {
Expand Down Expand Up @@ -4691,12 +4691,14 @@ avalon.directive("if", {
elem.required = false
elem.setAttribute("_required", "true")
}
if (elem.querySelectorAll) {
try {// 如果不支持querySelectorAll或:required,可以直接无视
avalon.each(elem.querySelectorAll(":required"), function (el) {
elem.required = false
el.setAttribute("_required", "true")
})
} catch (e) {
}

var node = binding.element = DOC.createComment("ms-if"),
pos = elem.nextSibling
binding.recoverNode = function () {
Expand Down

0 comments on commit b2253d3

Please sign in to comment.