Skip to content

Commit

Permalink
Fixed IE8 error: "Error. 'type' is null or not an object."
Browse files Browse the repository at this point in the history
  • Loading branch information
Devon Meunier committed Oct 27, 2012
1 parent 192e693 commit a14d030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/js/html5Forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ var html5Forms = new function () {
setNodeClasses(node, true);
}

if (i==0 && node.type=="submit") {
if (i==0 && node && node.type=="submit") {
EventHelpers.addEvent(node, 'click', submitClickEvent);
}
}
Expand Down

0 comments on commit a14d030

Please sign in to comment.