Skip to content

Commit

Permalink
[#1082] Fix for jQuery.contains as params should be dom elements and …
Browse files Browse the repository at this point in the history
…not jQuery collections
  • Loading branch information
johnmartin committed Jul 4, 2013
1 parent 05096e9 commit f9e43bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ckan/public/base/test/spec/modules/custom-fields.spec.js
Expand Up @@ -66,7 +66,7 @@ describe('ckan.module.CustomFieldsModule()', function () {

this.module.newField();

assert.ok(jQuery.contains(this.module.el, element));
assert.ok(jQuery.contains(this.module.el[0], element));
});
});

Expand Down
Expand Up @@ -30,7 +30,7 @@ describe('ckan.modules.ResourceUploadFieldModule()', function () {
it('should append the upload field to the module element', function () {
this.module.initialize();

assert.ok(jQuery.contains(this.el, this.module.upload));
assert.ok(jQuery.contains(this.el[0], this.module.upload[0]));
});

it('should call .setupFileUpload()', function () {
Expand Down

0 comments on commit f9e43bb

Please sign in to comment.