tj / should.js

BDD style assertions for node.js -- test framework agnostic
MIT License
2.75k stars 194 forks source link

Fixes jQuery checks in environments without DOM #174

Closed tonylukasavage closed 10 years ago

tonylukasavage commented 10 years ago

This resolves the same exact issue as was addressed with HTMLElement in #173. The execution of "lib/ext/browser/jquery.js" assumes the presence of jQuery which won't be available in DOM-less environments like Appcelerator's Titanium. Checking for the existence of jQuery before attempting to update its prototype allows Titanium to make full use of should.js.