Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

fix(loader): rename window parameter #4498

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
* Interface for configuring angular {@link angular.module modules}.
*/

function setupModuleLoader(window) {
function setupModuleLoader(windowObj) {

function ensure(obj, name, factory) {
return obj[name] || (obj[name] = factory());
}

return ensure(ensure(window, 'angular', Object), 'module', function() {
return ensure(ensure(windowObj, 'angular', Object), 'module', function() {
/** @type {Object.<string, angular.Module>} */
var modules = {};

Expand Down