fix: drop attach-form

This commit is contained in:
EnixCoda 2019-11-19 10:40:03 +08:00
parent 69b9449c33
commit 2d000c8ced
No known key found for this signature in database
GPG key ID: FE06F5DFC1C9B8E4
2 changed files with 0 additions and 9 deletions

View file

@ -75,8 +75,6 @@ Pjax.prototype = {
attachLink: require("./lib/proto/attach-link.js"),
attachForm: require("./lib/proto/attach-form.js"),
forEachSelectors: function(cb, context, DOMContext) {
return forEachSelectors.bind(this)(this.options.selectors, cb, context, DOMContext)
},

View file

@ -9,13 +9,6 @@ module.exports = function(el) {
}
break
case "form":
// only attach link if el does not already have link attached
if (!el.hasAttribute(attrState)) {
this.attachForm(el)
}
break
default:
throw "Pjax can only be applied on <a> or <form> submit"
}