Closed tonylukasavage closed 10 years ago
+1
+1
+1
+1
+1
+1
+1
+1
+1.32345
+1
+1
+1
+1
@btd Thanks for the incredibly quick turn-around!
No problem, i was curious that so many people affected (i used jsdom in tests with jq and miss it) and only now it become clear. Thank you for fix.
When the check for
HTMLElement
was relaxed (33331c92834106846196a1bf1c59ee032990ab81), it inadvertently made the should.js browser-compatible version unusable in environments without a DOM. The priortypeof
check made it safe. I know, it sounds like a worthless note, but Appcelerator's Titanium was able to make full use of should.js before this commit. Now without a patch of some sort it cannot, ending in undefined exceptions.I understand that the purpose of the single-file should.js is to support the browser. I humbly request, though, that unless the commit which relaxed the
HTMLElement
check was critical for some reason I am unaware of, please consider accepting this PR so that the Titanium community can continue using it in its unit testing suites again.All tests passing.