Skip to content

Instantly share code, notes, and snippets.

@Akkuma
Created July 26, 2012 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Akkuma/3183800 to your computer and use it in GitHub Desktop.
Save Akkuma/3183800 to your computer and use it in GitHub Desktop.
520 Style
//Comma first, used by both Isaac Z. Schlueter and TJ Holowaychuk
//modified with the opening bracket on the same line as declaration
//Variable assignment and object property value right aligned
var objectStyle = {
property1 : 'test'
, prop2 : 3
, property : 4
};
var variablesAlignment = 1
, anotherTest = 'some string'
, varA = 'Another string'
;
//Indent chains to meet the 120 character limit
var scenarioData = gaas.models.scenario
.get(
scenario
, gaas.models.scenario.editLevel.site
, GLOBAL.util.extend(scenario, {useCache: true})
)
.data;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment