 (() ->
   # class for exposing plugin API
   class PluginApi
-    constructor: (@view, @plugin_metadata) ->
+    constructor: (@view, @plugin_metadata, @pluginManager) ->
       @name = @plugin_metadata.name
       @data = @view.data
       @cursor = @view.cursor


    getData: (key) ->
      @data.store.getPluginData @name, key

  PLUGIN_SCHEMA = {
    title: "Plugin metadata schema"

        items: { type: "string" }
        default: []
      }
      dataVersion: {
        description: "Version of data format for plugin"
        type: "integer"
        default: 1
