Skip to content

Commit

Permalink
Change buildMap to object literal from array literal
Browse files Browse the repository at this point in the history
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
Fabien committed May 24, 2013
1 parent f9c5b03 commit 814dc92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text.js
Expand Up @@ -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 = {
Expand Down

0 comments on commit 814dc92

Please sign in to comment.