Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ay-dialog

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ay-dialog - npm Package Compare versions

Comparing version 1.1.4 to 1.2.0

22

dialog.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc