Commit 3418e821 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Editor: rename loadingFromGist

parent 2064ac9b
...@@ -6,7 +6,7 @@ var examples = require('./example-contracts') ...@@ -6,7 +6,7 @@ var examples = require('./example-contracts')
var ace = require('brace') var ace = require('brace')
require('../mode-solidity.js') require('../mode-solidity.js')
function Editor (loadingFromGist, storage) { function Editor (doNotLoadStorage, storage) {
var SOL_CACHE_UNTITLED = 'Untitled' var SOL_CACHE_UNTITLED = 'Untitled'
var SOL_CACHE_FILE = null var SOL_CACHE_FILE = null
...@@ -172,7 +172,7 @@ function Editor (loadingFromGist, storage) { ...@@ -172,7 +172,7 @@ function Editor (loadingFromGist, storage) {
function setupStuff (files) { function setupStuff (files) {
if (files.length === 0) { if (files.length === 0) {
if (loadingFromGist) return if (doNotLoadStorage) return
files.push(examples.ballot.name) files.push(examples.ballot.name)
storage.set(examples.ballot.name, examples.ballot.content) storage.set(examples.ballot.name, examples.ballot.content)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment