   # This also exposes convenience proxy methods to the underlying _keyconfig_
   # instance, and persists the state of a keyconfig#Collection to the app storage.
   #
-  constructor: (opts={}) ->
-
-    super()
+  constructor: (options={}, data) ->
+
 
     @_store  = null
     @_buffer = null
 
-    if opts.shortcuts instanceof Shortcuts
-      @shortcuts = opts.shortcuts
+    if options.shortcuts instanceof Shortcuts
+      @shortcuts = options.shortcuts
     else
       @shortcuts = new Shortcuts _.keys(defaults).reduce (acc, key) ->
           acc[key] = defaults[key].data


module.exports =

class ShortcutsController extends events.EventEmitter

  klass = this


        , {}

    @_flushBuffer()

    super options, data


  # Prepares buffer for the next batch of changes.
