vendor/ember-leaflet-cartodb/cartodb_noleaflet.js
function(pos) {
    var props = {};
    if(pos.indexOf('top') !== -1) {
      props.top = this.options.pos_margin;
    } else if(pos.indexOf('bottom') !== -1) {
      props.bottom = this.options.pos_margin;
    }

    if(pos.indexOf('left') !== -1) {
      props.left = this.options.pos_margin;
    } else if(pos.indexOf('right') !== -1) {
      props.right = this.options.pos_margin;
    }
    this.$el.css(props);

  }
function(pos) {
    var props = {};
    if(pos.indexOf('top') !== -1) {
      props.top = this.options.pos_margin;
    } else if(pos.indexOf('bottom') !== -1) {
      props.bottom = this.options.pos_margin;
    }

    if(pos.indexOf('left') !== -1) {
      props.left = this.options.pos_margin;
    } else if(pos.indexOf('right') !== -1) {
      props.right = this.options.pos_margin;
    }
    this.$el.css(props);

  }
function ( pos ) { var props = { } ; if ( pos . indexOf ( 'top' ) !== - 1 ) { props . top = this . options . pos_margin ; } else if ( pos . indexOf ( 'bottom' ) !== - 1 ) { props . bottom = this . options . pos_margin ; } if ( pos . indexOf ( 'left' ) !== - 1 ) { props . left = this . options . pos_margin ; } else if ( pos . indexOf ( 'right' ) !== - 1 ) { props . right = this . options . pos_margin ; } this . $el . css ( props ) ; }
set position based on a string like "top|right", "top|left", "bottom|righ"...
set position based on a string like top|right top|left bottom|righ ...