Skip to content

Commit

Permalink
移除 自掉为input添加name的特性
Browse files Browse the repository at this point in the history
  • Loading branch information
qincheng committed Feb 8, 2014
1 parent bdf363a commit d4d0e7c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions avalon.js
Expand Up @@ -2533,9 +2533,6 @@
}
}
}
if (!elem.name) { //如果用户没有写name属性,浏览器默认给它一个空字符串
elem.name = generateID()
}
var attr = elem.getAttribute("data-duplex-changed")
if (attr) {
if (/radio|checkbox|select/.test(elem.type)) {
Expand Down
3 changes: 0 additions & 3 deletions avalon.mobile.js
Expand Up @@ -2047,9 +2047,6 @@
}
}
}
if (!elem.name) { //如果用户没有写name属性,浏览器默认给它一个空字符串
elem.name = generateID()
}
var attr = elem.getAttribute("data-duplex-changed")
if (attr) {
if (/radio|checkbox|select/.test(elem.type)) {
Expand Down

0 comments on commit d4d0e7c

Please sign in to comment.