 
 class ShareJSTextConnector extends ShareJSConnector
   createView: ->
-    return Blaze.With(Blaze.getCurrentData, -> Template._sharejsText)
+    return Blaze.With(Template.currentData, -> Template._sharejsText)
 
   rendered: (element) ->
     super

    # Meteor._debug "destroying textarea editor"
    @textarea = null

UI.registerHelper "sharejsAce", Template.__create__('sharejsAce', ->
  return new ShareJSAceConnector(this).create()
)

UI.registerHelper "sharejsText", Template.__create__('sharejsText', ->
  return new ShareJSTextConnector(this).create()
)

    # Create a ReactiveVar that tracks the docId that was passed in
    docIdVar = new Blaze.ReactiveVar

    parentView.onViewReady ->
      this.autorun ->
        data = Template.currentData()
        docIdVar.set(data.docid)

    parentView.onViewDestroyed =>
      this.destroy()

    @isCreated = false
