Skip to content

Commit

Permalink
debug message for when famous-views starts up
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Jun 3, 2015
1 parent 1fb5960 commit 04556c2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ FView.init = function() {
}

if (typeof famous !== 'undefined') {
log.debug("Starting up. famous global found while loading package, great!");
FView.init();
} else {
Meteor.startup(function() {
if (typeof famous === 'undefined')
console.warn("Couldn't find `famous` global, call FView.init() at appropriate time.")
else
log.debug("Couldn't find `famous` global, call FView.init() when appropriate.")
else {
log.debug("Starting up. famous global found during Meteor.startup()");
FView.init();
}
});
}

0 comments on commit 04556c2

Please sign in to comment.