           @_elemTodo.push( _id )
           @_elemTodoH[ _id ] = true
           @_checkNeedFlush()
-    null
+    true
   
   ###
   Deletes a named element attribute
   ###
   delAttr: (_id, _key)->
-    _attrTodo = @_attrtodo[_id]
+    return null unless @_elements[_id]? # item is deleted
+    _attrTodo = @_attrTodo[_id]
     _attrCache = @_attrCache[_id]
     delete _attrCache[_key]
     @_elements[_id].removeAttribute( _key )
     _todoIndex = _attrTodo.indexOf( _key )
     _attrTodo.splice( _todoIndex, 1 ) unless _todoIndex == -1
     @_checkNeedFlush()
-    null
+    true
 
   ###
   Checks if the element has a named CSS className
   ###
   hasClassName: (_id, _className)->
+    return null unless @_elements[_id]? # item is deleted
     _classNames = @_elements[_id].className.split(' ')
     return _classNames.indexOf( _className ) != -1
   

  Gets the named element style attribute value.
  ###
  getStyle: (_id, _key, _noCache)->
    _cached = @_styleCache[_id]
    _key = @_deCamelize(_key)
    if _cached[_key] == undefined or _noCache

    for i in [ 1.._loopMaxL ]
      _key = _currTodo.shift()
      _val = _attrCache[_key]
      _elem[_key] = _val
    null
  
  ###
