Permalink
Browse files

fix #122: remove unused utility file

  • Loading branch information...
1 parent ad0c1ab commit 5791201cd0da259005f2891800022418a07c216f @jesseweed committed May 2, 2016
Showing with 0 additions and 55 deletions.
  1. +0 −1 lib/settings.coffee
  2. +0 −54 lib/utility.coffee
View
@@ -1,5 +1,4 @@
Dom = require('./dom')
-Utility = require('./utility')
module.exports =
init: (state) ->
View
@@ -1,54 +0,0 @@
-Dom = require(atom.packages.getLoadedPackage('seti-ui').path + '/lib/dom')
-
-module.exports =
-
- # ADD CLASS WHEN CONDITIONAL IS FALSE
- addWhenFalse: (obj) ->
-
-
- # CONVERT TO AN ARRAY IF NOT
- if !Array.isArray(obj.el)
- obj.el = [ obj.el ]
-
- obj.el.forEach (element) ->
-
- el = Dom.queryAll(element) #FIND ELEMENT IN DOM
-
- if !obj.bool
- Dom.addClass el, obj.className # ADD CLASS
- else
- Dom.removeClass el, obj.className # REMOVE CLASS
-
-
- # ADD CLASS WHEN CONDITIONAL IS TRUE
- addWhenTrue: (obj) ->
-
-
- # CONVERT TO AN ARRAY IF NOT
- if !Array.isArray(obj.el)
- obj.el = [ obj.el ]
-
- obj.el.forEach (element) ->
-
- el = Dom.queryAll(element) #FIND ELEMENT IN DOM
-
- if obj.bool
- Dom.addClass el, obj.className # ADD CLASS
- else
- Dom.removeClass el, obj.className # REMOVE CLASS
-
-
- applySetting: (obj) ->
-
-
- # APPLY A NEW SETTING
- atom.config.set obj.config, obj.val
-
- @[obj.action]
- el: obj.el
- className: obj.className
- bool: obj.val
-
- atom.config.onDidChange obj.config, (value) ->
- if value.oldValue != value.newValue and typeof obj.cb == 'function'
- obj.cb value.newValue

0 comments on commit 5791201

Please sign in to comment.