     @_callbacks = []
 
   getTargets : (opts={})->
-    selector = @settings.$selector
+    selector = @settings._selector
     targets = []
     return [] if !selector || selector.length == 0
     return @targets if @targets and !opts.refresh
 
-    if @settings.$multi
+    if @settings._multi
       targets = document.querySelectorAll selector
     else
       target = document.querySelector selector

      el = @_elements.shift()

  insert: (target, el)->
    setDimension(el, 'width', @settings.$width || '100%')
    setDimension(el, 'height', @settings.$height)
    @_elements.push el
    switch @settings.$placement
      when 'before' then target.parentNode.insertBefore(el, target)
      when 'after'  then target.parentNode.insertBefore(el, target.nextSibling)
      when 'top'    then target.insertBefore(el, target.firstChild)

  embed : (opts={}, embedCompleteCallback)->
    @targets = @getTargets({refresh:opts.refresh}) if opts.refresh
    @_callbacks.push(embedCompleteCallback) if _.isFunction(embedCompleteCallback)
    if @settings._sandbox
      @forEachTarget (target, args...)=>
        iframe = @embedIframe(target)
        @insert(target, iframe)
