From 7e06e10fcf8877cdb6f325d6823fbd4aba034d85 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Thu, 6 Nov 2014 15:27:45 -0700 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20require=20a=20specific=20jQuery?= =?UTF-8?q?=20instance=20for=20jasmine=20jQuery=20matchers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Max Brunsfeld --- vendor/jasmine-jquery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;