Add comments about other people's bad code.

This commit is contained in:
Ian Gulliver
2014-05-16 18:21:59 +03:00
parent 2d2216500a
commit 0d72e4ca38
2 changed files with 15 additions and 0 deletions

View File

@@ -171,6 +171,10 @@ Cosmopolite.prototype.onLoad_ = function() {
if (--this.numScriptsToLoad_ > 0) {
return;
}
// jQuery.noConflict() doesn't actually remove window.$ and window.jQuery,
// it just sets them back to undefined. This angers QUnit's globals
// detection. goog.appengine.Channel doesn't even provide a noConflict()
// equivalent.
this.$ = jQuery.noConflict(true);
if (this.shutdown_) {
// Shutdown during startup