Fix coding standard issue

pull/1/head
ninabreznik 8 years ago
parent 7c126e0d12
commit a43309db61
  1. 7
      src/app.js
  2. 2
      src/app/debugger-tab.js
  3. 22
      src/app/style-guide.js
  4. 3
      src/universal-dapp.js

@ -52,7 +52,6 @@ document.querySelector('#optionViews').appendChild(debuggerView)
var filesView = filesTab() var filesView = filesTab()
document.querySelector('#optionViews').appendChild(filesView) document.querySelector('#optionViews').appendChild(filesView)
// The event listener needs to be registered as early as possible, because the // The event listener needs to be registered as early as possible, because the
// parent will send the message upon the "load" event. // parent will send the message upon the "load" event.
var filesToLoad = null var filesToLoad = null
@ -430,12 +429,6 @@ var run = function () {
return $filesEl.position().left return $filesEl.position().left
} }
function activeFilePos () {
var el = $filesEl.find('.active')
var l = el.position().left
return l
}
function reAdjust () { function reAdjust () {
if (widthOfList() + getLeftPosi() > widthOfVisible()) { if (widthOfList() + getLeftPosi() > widthOfVisible()) {
$scrollerRight.fadeIn('fast') $scrollerRight.fadeIn('fast')

@ -2,8 +2,6 @@ var yo = require('yo-yo')
// -------------- styling ---------------------- // -------------- styling ----------------------
var csjs = require('csjs-inject') var csjs = require('csjs-inject')
var styleGuide = require('./style-guide')
var styles = styleGuide()
var css = csjs` var css = csjs`
.debuggerTabView { .debuggerTabView {

@ -7,17 +7,17 @@ function styleGuide () {
COLORS COLORS
-------------------------------------------------------------------------- */ -------------------------------------------------------------------------- */
var colors = { var colors = {
blue : '#9DC1F5', blue: '#9DC1F5',
lightBlue : '#F4F6FF', lightBlue: '#F4F6FF',
greyBlue : '#102026', greyBlue: '#102026',
grey : '#666', grey: '#666',
lightGrey : '#f8f8f8', lightGrey: '#f8f8f8',
red : '#FF8080', red: '#FF8080',
lightRed : '#FFB9B9', lightRed: '#FFB9B9',
green : '#B1EAC5', green: '#B1EAC5',
violet : '#C6CFF7', violet: '#C6CFF7',
pink : '#EC96EC', pink: '#EC96EC',
yellow : '#E6E5A7' yellow: '#E6E5A7'
} }
/* -------------------------------------------------------------------------- /* --------------------------------------------------------------------------

@ -9,12 +9,9 @@ var EventManager = require('./lib/eventManager')
var crypto = require('crypto') var crypto = require('crypto')
var async = require('async') var async = require('async')
var TxRunner = require('./app/txRunner') var TxRunner = require('./app/txRunner')
var yo = require('yo-yo')
// -------------- styling ---------------------- // -------------- styling ----------------------
var csjs = require('csjs-inject') var csjs = require('csjs-inject')
var styleGuide = require('./app/style-guide')
var styles = styleGuide()
var css = csjs` var css = csjs`
.options { .options {
float: left; float: left;

Loading…
Cancel
Save