   ###
   _contentWillChange: Ember.beforeObserver ->
     content = get(@, 'content')
-    len = if content then get(content, 'length') else 0
+    len = get(@, 'content.length') || 0
 
     @contentArrayWillChange @, 0, len, undefined
     @contentWillChange @

    @method _cursorDidChange
  ###
  _cursorDidChange: Ember.observer ->
    if get(@, 'childViews.length') then @_updateCursorLocation() else @_updateChildViews()
  , 'cursor'

  ###


  init: ->
    ret = @_super()
    value = get(@, 'value')
    set(@, '_value', value)
    @capture value unless Ember.isEmpty(value)
    @_contentDidChange() if Ember.isArray(get(@, 'content'))
    ret

  ###
