Skip to content

Commit

Permalink
Fix console non-existence bug (for real)
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed May 14, 2012
1 parent 354a9eb commit 4caf81a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion q.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ function isRejected(object) {

var rejections = [];
var errors = [];
if (typeof window !== "undefined" && typeof window.console === "function") {
if (typeof window !== "undefined" && typeof window.console === "object") {
// This promise library consumes exceptions thrown in handlers so
// they can be handled by a subsequent promise. The rejected
// promises get added to this array when they are created, and
Expand Down

0 comments on commit 4caf81a

Please sign in to comment.