Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Commit

Permalink
fix(ajax-form.html): script may fail if loaded before template
Browse files Browse the repository at this point in the history
With this stack trace:
   Uncaught TypeError: Cannot read property 'content' of undefined
       at HTMLFormElement.value (ajax-form.js:476)
       at ajax-form.js:469
       at ajax-form.js:500
  • Loading branch information
Ray Nicholus committed Dec 3, 2016
1 parent bb174a0 commit 801d190
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ajax-form.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<script src="ajax-form.js"></script>

<!--
## HTML forms on performance-enhancing drugs
Expand Down Expand Up @@ -263,4 +261,6 @@
* @default 'GET'
*/
</script>
</template>
</template>

<script src="ajax-form.js"></script>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
"type": "git",
"url": "https://github.com/rnicholus/ajax-form.git"
},
"version": "2.1.3"
"version": "2.1.4"
}

0 comments on commit 801d190

Please sign in to comment.