Need to use global version here because we always need a reference to the
current tracking function (which gets replaced in tracker.js). The only
other solution I could think of was to duplicate this function again in
tracker.js.

(Sent from my phone)
On Feb 25, 2013 1:48 AM, "Maciej Brencz" <notifications@github.com> wrote:

> In resources/wikia/modules/tracker.stub.js:
>
> > +		 *     });
> > +		 *
> > +		 *     track({
> > +		 *         label: 'myLabel'
> > +		 *     });
> > +		 *
> > +		 * @params {Object} defaults
> > +		 *         A key-value hash of parameters.
> > +		 *
> > +		 * @see The track method above for hash key information.
> > +		 */
> > +		function buildTrackingFunction() {
> > +			var args = slice.call( arguments );
> > +
> > +			return function() {
> > +				return Wikia.Tracker.track.apply( null, args.concat( slice.call( arguments ) ) );
>
> Please call track function here instead of using global scope
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Wikia/app/pull/450/files#r3132461>.
>
>