Skip to content

Commit

Permalink
Merge pull request #7 from meunierd/master
Browse files Browse the repository at this point in the history
Prevents IE8 from raising an error when using placeholder, date
  • Loading branch information
zoltan-dulac committed Jan 24, 2015
2 parents 7a3e751 + a14d030 commit 5ef5af2
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 5ef5af2

Please sign in to comment.