Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

Commit

Permalink
Renamed paramSettings to getParameters, to cause less confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
luto committed Jan 28, 2013
1 parent 7432b7a commit a239158
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/static/js/pad.js
Expand Up @@ -107,7 +107,7 @@ function randomString()
// * the parameter was supplied and matches checkVal
// * the parameter was supplied and checkVal is null
// callback: the function to call when all above succeeds, `val` is the value supplied by the user
var paramSettings = [
var getParameters = [
{ name: "noColors", checkVal: "true", callback: function(val) { settings.noColors = true; $('#clearAuthorship').hide(); } },
{ name: "showControls", checkVal: "false", callback: function(val) { $('#editbar').hide(); $('#editorcontainer').css({"top":"0px"}); } },
{ name: "showChat", checkVal: "false", callback: function(val) { $('#chaticon').hide(); } },
Expand All @@ -126,9 +126,9 @@ function getParams()
{
var params = getUrlVars()

for(var i = 0; i < paramSettings.length; i++)
for(var i = 0; i < getParameters.length; i++)
{
var setting = paramSettings[i];
var setting = getParameters[i];
var value = params[setting.name];

if(value && (value == setting.checkVal || setting.checkVal == null))
Expand Down

0 comments on commit a239158

Please sign in to comment.