lib/teaspoon/qunit/assets/teaspoon-qunit.js in teaspoon-qunit-1.19.0 vs lib/teaspoon/qunit/assets/teaspoon-qunit.js in teaspoon-qunit-1.20.0
- old
+ new
@@ -348,11 +348,11 @@
var i, j, parsed, ref, results;
if (!window.fixture.el) {
create();
}
if (jQueryAvailable()) {
- parsed = $($.parseHTML(content, document, true));
+ parsed = jQuery(jQuery.parseHTML(content, document, true));
results = [];
for (i = j = 0, ref = parsed.length; 0 <= ref ? j < ref : j > ref; i = 0 <= ref ? ++j : --j) {
results.push(window.fixture.el.appendChild(parsed[i]));
}
return results;
@@ -363,11 +363,11 @@
create = function() {
var ref;
window.fixture.el = document.createElement("div");
if (jQueryAvailable()) {
- window.fixture.$el = $(window.fixture.el);
+ window.fixture.$el = jQuery(window.fixture.el);
}
window.fixture.el.id = "teaspoon-fixtures";
return (ref = document.body) != null ? ref.appendChild(window.fixture.el) : void 0;
};
@@ -405,10 +405,10 @@
xhr.open("GET", Teaspoon.root + "/fixtures/" + url, false);
return xhr.send();
};
jQueryAvailable = function() {
- return typeof window.$ === 'function';
+ return typeof window.jQuery === 'function';
};
return Fixture;
})();