diff --git a/vendor/jasmine-jquery.js b/vendor/jasmine-jquery.js index 5fe347b9f..ef2731784 100644 --- a/vendor/jasmine-jquery.js +++ b/vendor/jasmine-jquery.js @@ -141,7 +141,7 @@ jasmine.JQuery.matchersClass = {}; if (this.actual instanceof HTMLElement) { this.actual = jQuery(this.actual); } - if (this.actual instanceof jQuery) { + if (this.actual && this.actual.jquery) { var result = jQueryMatchers[methodName].apply(this, arguments); this.actual = jasmine.JQuery.elementToString(this.actual); return result;