Skip to content

Commit

Permalink
[585976] jQuery.fn.numericInput|wrapDeleteInput|ajaxSubmitInput now b…
Browse files Browse the repository at this point in the history
…ail when called on empty jQuery collection.
  • Loading branch information
Paul Craciunoiu committed Aug 20, 2010
1 parent 65bd879 commit 5995dc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion media/js/search.js
Expand Up @@ -49,7 +49,7 @@ $(document).ready(function() {
*/
jQuery.fn.numericInput = function (options) {
// Only works on <input/>
if (this[0].nodeName !== 'INPUT') {
if (!this.is('input')) {
return this;
}

Expand Down
5 changes: 2 additions & 3 deletions media/js/upload.js
Expand Up @@ -129,7 +129,7 @@ $(document).ready(function () {
*/
jQuery.fn.wrapDeleteInput = function (options) {
// Only works on <input/>
if (this[0].nodeName !== 'INPUT') {
if (!this.is('input')) {
return this;
}

Expand Down Expand Up @@ -192,9 +192,8 @@ jQuery.fn.wrapDeleteInput = function (options) {
* is complete.
*/
jQuery.fn.ajaxSubmitInput = function (options) {

// Only works on <input/>
if (this[0].nodeName !== 'INPUT') {
if (!this.is('input')) {
return this;
}

Expand Down

0 comments on commit 5995dc8

Please sign in to comment.