Example #1
0
        Tracker.autorun(function() {
            //debugLog('running dep orgro autorun');

            $("#attackerLimit").val(Session.get('attackerlimit'));
            Meteor.subscribe("attackers-summary", onReady=function() {
                //load the base character meshes, etc to allow resource sharing
                //when this completes it triggers a clear/dataload and filtering of characters.
                //debugLog('Invalidated attackers-summary via subscribe');
                drawAttackerCharts();
                hookAttackers();
                waitForBaseCharacter();
            });
            //Changing the session.attackerlimit should
            //make us redraw a new set of attackers.
            Tracker.onInvalidate(function () {
                //debugLog('Invalidated attackers-summary');
                hookAttackers();
                waitForBaseCharacter();
            });

        }); //end deps.autorun