Comparing version 1.1.4 to 1.2.0
@@ -137,7 +137,3 @@ /*! Copyright (c) 2016 Ayogo Health Inc. | ||
function doPositioning(el, anchor, scrollOffset, modal) { | ||
if (anchor) { | ||
console.warn('Magic Alignment mode for <dialog> unsupported!'); | ||
} | ||
function doPositioning(el, scrollOffset, modal) { | ||
// Normal Alignment | ||
@@ -310,3 +306,3 @@ if (!modal) { | ||
var showModal = HTMLDialogElement.prototype.showModal; | ||
el.showModal = function(anchor) { | ||
el.showModal = function() { | ||
var offset = getScrollOffset(); | ||
@@ -317,3 +313,3 @@ restoreScroll = blockScrolling(offset); | ||
requestAnimationFrame(function() { | ||
showModal.call(el, anchor); | ||
showModal.call(el); | ||
@@ -438,4 +434,4 @@ doFocus(el, true); | ||
// Polyfill the dialog `show(anchor)` method | ||
el.show = function(anchor) { | ||
// Polyfill the dialog `show()` method | ||
el.show = function() { | ||
if (el.open) { | ||
@@ -451,3 +447,3 @@ return; | ||
doPositioning(el, anchor, offset, false); | ||
doPositioning(el, offset, false); | ||
@@ -472,4 +468,4 @@ if (prevFocus && (prevFocus != $window.document.body)) { | ||
// Polyfill the dialog `showModal(anchor)` method | ||
el.showModal = function(anchor) { | ||
// Polyfill the dialog `showModal()` method | ||
el.showModal = function() { | ||
if (el.open) { | ||
@@ -500,3 +496,3 @@ return; | ||
doPositioning(el, anchor, offset, true); | ||
doPositioning(el, offset, true); | ||
doBackdrop(); | ||
@@ -503,0 +499,0 @@ |
{ | ||
"name": "ay-dialog", | ||
"version": "1.1.4", | ||
"version": "1.2.0", | ||
"copyright": "Copyright 2016 Ayogo Health Inc.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27012
564