     @isCreated = true
 
     @view = @createView()
-    @view.onRendered ->
-      connector.rendered( this.domrange.firstNode() )
+    @view.onViewReady ->
+      connector.rendered( this._domrange.firstNode() )
 
       this.autorun ->
         # By grabbing docId here, we ensure that we only try to connect when


class ShareJSTextConnector extends ShareJSConnector
  createView: ->
    return Blaze.With(Blaze.getCurrentData, -> Template._sharejsText)

  rendered: (element) ->
    super

class ShareJSAceConnector extends ShareJSConnector
  constructor: (parentView) ->
    super
    params = Blaze.getData(parentView)
    @configCallback = params.onRender || params.callback # back-compat
    @connectCallback = params.onConnect

  createView: ->
    return Blaze.With(Template.currentData, -> Template._sharejsAce)

  rendered: (element) ->
    super
