Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure Form.reset always returns a reference to the receiver eleme…
…nt. [#309 state:resolved] (Phil, kangax)
- Loading branch information
1 parent
97fc24a
commit dc9d274
Showing
3 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
var Form = { | ||
reset: function(form) { | ||
$(form).reset(); | ||
form = $(form); | ||
form.reset(); | ||
return form; | ||
}, | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters