Replace Atom::getLoadSettings with a ::loadSettings property

We assign a value into ::loadSettings anyway in a spec, so there's not
much point leaving it a method. Eventually I'd like to pass all these
settings in when constructing the Atom object and eliminate awareness
of the loadSettings altogether from the Atom global.
This commit is contained in:
Nathan Sobo
2013-12-12 15:41:52 -08:00
parent 14c58c4517
commit a564cc66f6
11 changed files with 18 additions and 24 deletions

View File

@@ -1,7 +1,7 @@
require '../src/window'
Atom = require '../src/atom'
atom = new Atom()
atom.show() unless atom.getLoadSettings().exitWhenDone
atom.show() unless atom.loadSettings.exitWhenDone
window.atom = atom
{runSpecSuite} = require '../spec/jasmine-helper'

View File

@@ -40,7 +40,7 @@ window.benchmark = (args...) ->
report = "#{fullname}: #{total} / #{count} = #{avg}ms"
console.log(report)
if atom.getLoadSettings().exitWhenDone
if atom.loadSettings.exitWhenDone
url = "https://github.com/_stats"
data = [type: 'timing', metric: "atom.#{fullname}", ms: avg]
$.ajax url,