mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: drop attach-form
This commit is contained in:
parent
69b9449c33
commit
2d000c8ced
2 changed files with 0 additions and 9 deletions
|
|
@ -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)
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue