             else
                 return false
 
+    class LinkView extends SyncView
+        constructor: (syncMaster, render) ->
+            super(syncMaster)
+            @render = render
+
+        onDataUpdated: (source, version, data) ->
+            if super(source, version, data)
+                @render(data)
+
+
     class DropboxView extends SyncView
         constructor: (syncMaster, path) ->
             super(syncMaster)


    cmTaskpaper.title.text = 'CodeMirror View'
    panel.insertRight(cmTaskpaper)
    panel.insertRight(linkView)
    panel.insertBottom(coffeeconsole, cmTaskpaper)
    panel.attach(document.body)


    coffeeconsole = new CoffeeConsoleWidget()
    coffeeconsole.title.text = 'CoffeeScript REPL'

    linkViewWidget = new LinkViewWidget(syncMaster)
    linkViewWidget.title.text = 'Link View'

    linkView = new LinkView(syncMaster, linkViewWidget.render)

    spy.linkViewWidget = linkViewWidget
    spy.linkView = linkView


