Permalink
Browse files

Change buildMap to object literal from array literal

The buildMap variable was being used like an object (indexed with strings) which arrays of course can support like any object but I thought it would make it clearer to initialize it with an object literal rather than array literal since array methods aren't being used for the variable.
  • Loading branch information...
1 parent f9c5b03 commit 814dc928d8b0b9c0c43e5ae8071cc616e60a528f Fabien committed May 24, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 text.js
View
@@ -19,7 +19,7 @@ define(['module'], function (module) {
defaultProtocol = hasLocation && location.protocol && location.protocol.replace(/\:/, ''),
defaultHostName = hasLocation && location.hostname,
defaultPort = hasLocation && (location.port || undefined),
- buildMap = [],
+ buildMap = {},
masterConfig = (module.config && module.config()) || {};
text = {

0 comments on commit 814dc92

Please sign in to comment.