vendor/ember-leaflet-cartodb/cartodb_noleaflet.js
function(container, className) {
    // Check if any cartodb-logo exists within container
    var a = [];
    var re = new RegExp('\\b' + className + '\\b');
    var els = container.getElementsByTagName("*");
    for(var i=0,j=els.length; i<j; i++)
      if(re.test(els[i].className))a.push(els[i]);

    return a.length > 0;
  }
function(container, className) {
    // Check if any cartodb-logo exists within container
    var a = [];
    var re = new RegExp('\\b' + className + '\\b');
    var els = container.getElementsByTagName("*");
    for(var i=0,j=els.length; i<j; i++)
      if(re.test(els[i].className))a.push(els[i]);

    return a.length > 0;
  }
function ( container , className ) { // Check if any cartodb-logo exists within container var a = [ ] ; var re = new RegExp ( '\\b' + className + '\\b' ) ; var els = container . getElementsByTagName ( "*" ) ; for ( var i = 0 , j = els . length ; i < j ; i ++ ) if ( re . test ( els [ i ] . className ) ) a . push ( els [ i ] ) ; return a . length > 0 ; }
Check if any class already exists
in the provided container
Check if any class already exists in the provided container