 
 
   addContainer: (container, pos = {}) ->
+
+    @createCanvas()  if @prependCanvas
 
     @addSubView container
 

    @activeJoints    = []
    @fakeConnections = []

    @_autoUpdate = null
    @updateEvery = @getOption 'updateEvery'


  diaAdded: (container, diaObj) ->

    container.setX pos.x  if pos.x?
    container.setY pos.y  if pos.y?

    @createCanvas()  unless @prependCanvas

    return container

