 
         if @options.container
             container = @options.container
-            container = if typeof container is 'string' then document.getElementById container else container
+            container = switch getClass(container)
+                when 'String' then document.getElementById container
+                else container
+
             $append container, @toElement()
 
     options:


    destination

$append = (el, children...) ->
    for child in children
        switch typeof child
            when 'string' then el.appendChild $fromHTML child
            else el.appendChild child

    el


    return -1

extend Chorus, {extend, getClass, jsonp, $append, $fromHTML}

# OrderedSet
# ----------
