Skip to content

Commit

Permalink
Fix Deps debugFunc for non-Meteor use
Browse files Browse the repository at this point in the history
Apparently on current Chrome you can't call (f = console.log, f("x")).  You need to bind console.
  • Loading branch information
dgreensp committed Apr 4, 2014
1 parent bae16dd commit c65038c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/deps/deps.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ var _assign = function (tgt, src) {
var _debugFunc = function () {
// lazy evaluation because `Meteor` does not exist right away
return (typeof Meteor !== "undefined" ? Meteor._debug :
((typeof console !== "undefined") && console.log ? console.log :
((typeof console !== "undefined") && console.log ?
function () { console.log.apply(console, arguments); } :
function () {}));
};

Expand Down

0 comments on commit c65038c

Please sign in to comment.