src/components/dialog/dialog.js
function getDomElement(element, defaultElement) {
            if (angular.isString(element)) {
              element = $document[0].querySelector(element);
            }

            // If we have a reference to a raw dom element, always wrap it in jqLite
            return angular.element(element || defaultElement);
          }
function getDomElement(element, defaultElement) {
            if (angular.isString(element)) {
              element = $document[0].querySelector(element);
            }

            // If we have a reference to a raw dom element, always wrap it in jqLite
            return angular.element(element || defaultElement);
          }
function getDomElement ( element , defaultElement ) { if ( angular . isString ( element ) ) { element = $document [ 0 ] . querySelector ( element ) ; } // If we have a reference to a raw dom element, always wrap it in jqLite return angular . element ( element || defaultElement ) ; }
If the specifier is a simple string selector, then query for
the DOM element.
If the specifier is a simple string selector then query for the DOM element .