Code cleanup

This commit is contained in:
Behind The Math
2018-01-29 23:20:00 -05:00
committed by Robin North
parent 57aed828ac
commit 6fb509a021
12 changed files with 25 additions and 27 deletions

View File

@@ -13,7 +13,7 @@ var formAction = function(el, event) {
// Initialize requestOptions
options.requestOptions = {
requestUrl: el.getAttribute("action") || window.location.href,
requestMethod: el.getAttribute("method") || "GET",
requestMethod: el.getAttribute("method") || "GET"
}
// create a testable virtual link of the form action
@@ -93,7 +93,7 @@ module.exports = function(el) {
}
if (event.keyCode == 13) {
if (event.keyCode === 13) {
formAction.call(that, el, event)
}
}.bind(this))