Commit 0857b30a authored by Alex Beregszaszi's avatar Alex Beregszaszi

Remove SOL_CACHE_UNTITLED

parent d5542650
...@@ -7,7 +7,6 @@ var ace = require('brace') ...@@ -7,7 +7,6 @@ var ace = require('brace')
require('../mode-solidity.js') require('../mode-solidity.js')
function Editor (doNotLoadStorage, storage) { function Editor (doNotLoadStorage, storage) {
var SOL_CACHE_UNTITLED = 'Untitled'
var SOL_CACHE_FILE = null var SOL_CACHE_FILE = null
var editor = ace.edit('input') var editor = ace.edit('input')
...@@ -27,10 +26,10 @@ function Editor (doNotLoadStorage, storage) { ...@@ -27,10 +26,10 @@ function Editor (doNotLoadStorage, storage) {
this.newFile = function () { this.newFile = function () {
var untitledCount = '' var untitledCount = ''
while (storage.exists(SOL_CACHE_UNTITLED + untitledCount)) { while (storage.exists('Untitled' + untitledCount)) {
untitledCount = (untitledCount - 0) + 1 untitledCount = (untitledCount - 0) + 1
} }
SOL_CACHE_FILE = SOL_CACHE_UNTITLED + untitledCount SOL_CACHE_FILE = 'Untitled' + untitledCount
this.setCacheFileContent('') this.setCacheFileContent('')
} }
......
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