Remove warning that browser already supports <dialog>

Polyfills probably don't need to warn users that their browser already supports the feature they're polyfilling.
This commit is contained in:
Tim Oxley 2016-05-11 08:59:32 +08:00
Родитель 758cd75bea
Коммит 511aaa7373
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -326,12 +326,10 @@
};
/**
* @param {!Element} element to upgrade
* @param {!Element} element to upgrade, if necessary
*/
dialogPolyfill.registerDialog = function(element) {
if (element.showModal) {
console.warn('Can\'t upgrade <dialog>: already supported', element);
} else {
if (!element.showModal) {
dialogPolyfill.forceRegisterDialog(element);
}
};