lib/application-stub.js
function(moduleName, context) {
				var module = modules[moduleName].creator(context);

				if (!context.getElement) {
					// Add in a default getElement function that matches the first module element
					// Developer should stub this out if there are more than one instance of this module
					context.getElement = function() {
						return document.querySelector('[data-module="' + moduleName + '"]');
					};
				}
				return module;
			}
function(moduleName, context) {
				var module = modules[moduleName].creator(context);

				if (!context.getElement) {
					// Add in a default getElement function that matches the first module element
					// Developer should stub this out if there are more than one instance of this module
					context.getElement = function() {
						return document.querySelector('[data-module="' + moduleName + '"]');
					};
				}
				return module;
			}
function ( moduleName , context ) { var module = modules [ moduleName ] . creator ( context ) ; if ( ! context . getElement ) { // Add in a default getElement function that matches the first module element // Developer should stub this out if there are more than one instance of this module context . getElement = function ( ) { return document . querySelector ( '[data-module="' + moduleName + '"]' ) ; } ; } return module ; }
Will create a new instance of a module with a given context
@param {string} moduleName The name of the module being created
@param {Object} context The context object (usually a TestServiceProvider)
@returns {?Object} The module object
Will create a new instance of a module with a given context