function loadByDataUrl(url) {
      var results = dataUrlRegex.exec(url);
      var isBase64 = /base64/i.test(url);
      var data = isBase64 ? window.atob(results[2]) : results[2];

      return $q.when(angular.element(data)[0]);
    }
function loadByDataUrl(url) {
      var results = dataUrlRegex.exec(url);
      var isBase64 = /base64/i.test(url);
      var data = isBase64 ? window.atob(results[2]) : results[2];

      return $q.when(angular.element(data)[0]);
    }
function loadByDataUrl ( url ) { var results = dataUrlRegex . exec ( url ) ; var isBase64 = / base64 / i . test ( url ) ; var data = isBase64 ? window . atob ( results [ 2 ] ) : results [ 2 ] ; return $q . when ( angular . element ( data ) [ 0 ] ) ; }
/* Load the icon from embedded data URL.
/ * Load the icon from embedded data URL .
Load the data from a data url