mirror of
https://github.com/atom/atom.git
synced 2026-02-07 13:14:55 -05:00
Modernize command-panel package with package.cson
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
$ = require 'jquery'
|
||||
|
||||
module.exports =
|
||||
eventLog: null
|
||||
eventLog: {}
|
||||
commandLoggerView: null
|
||||
originalTrigger: null
|
||||
|
||||
@@ -29,7 +29,7 @@ module.exports =
|
||||
deactivate: ->
|
||||
$.fn.trigger = @originalTrigger if @originalTrigger?
|
||||
@commandLoggerView = null
|
||||
@eventLog = null
|
||||
@eventLog = {}
|
||||
|
||||
serialize: ->
|
||||
{@eventLog}
|
||||
|
||||
@@ -7,6 +7,7 @@ describe "CommandLogger", ->
|
||||
beforeEach ->
|
||||
new RootView(require.resolve('fixtures/sample.js'))
|
||||
commandLogger = atom.loadPackage('command-logger').packageMain
|
||||
commandLogger.eventLog = {}
|
||||
editor = rootView.getActiveEditor()
|
||||
|
||||
afterEach ->
|
||||
|
||||
Reference in New Issue
Block a user