vendor/ember-leaflet-cartodb/cartodb_noleaflet.js
function(attribution) {
    this._checkLayer();
    // Remove old one
    this.map.attributionControl.removeAttribution(
      cdb.core.sanitize.html(this.options.attribution)
    );
    // Change text
    this.map.attributionControl.addAttribution(
      cdb.core.sanitize.html(attribution)
    );
    // Set new attribution in the options
    this.options.attribution = attribution;
    // Change in the layer
    this.tilejson.attribution = this.options.attribution;

    this.fire('updated');
  }
function(attribution) {
    this._checkLayer();
    // Remove old one
    this.map.attributionControl.removeAttribution(
      cdb.core.sanitize.html(this.options.attribution)
    );
    // Change text
    this.map.attributionControl.addAttribution(
      cdb.core.sanitize.html(attribution)
    );
    // Set new attribution in the options
    this.options.attribution = attribution;
    // Change in the layer
    this.tilejson.attribution = this.options.attribution;

    this.fire('updated');
  }
function ( attribution ) { this . _checkLayer ( ) ; // Remove old one this . map . attributionControl . removeAttribution ( cdb . core . sanitize . html ( this . options . attribution ) ) ; // Change text this . map . attributionControl . addAttribution ( cdb . core . sanitize . html ( attribution ) ) ; // Set new attribution in the options this . options . attribution = attribution ; // Change in the layer this . tilejson . attribution = this . options . attribution ; this . fire ( 'updated' ) ; }
Set a new layer attribution
@params {String} New attribution string
Set a new layer attribution