Created
September 9, 2013 21:45
-
-
Save krismeister/6501967 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Assign the module to a Browser global. Ex: root.logger = factory(root.mb) | |
root.mb = root.mb || {}; | |
root.mb.metrics = root.mb.metrics || {}; | |
root.mb.metrics.ga = root.mb.metrics.ga || {}; | |
root.mb.metrics.floodlight = root.mb.metrics.floodlight || {}; | |
var metricsCore = factory( | |
// List ALL dependencies that this module has. Access the dependencies through the Browser globals (root is window) | |
root.jQuery, | |
root.mb, | |
root.mb.logger, | |
root.mb.events, | |
root.mb.metrics.ga, | |
root.mb.metrics.floodlight | |
); | |
root.jQuery.extend(root.mb.metrics, metricsCore); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment