@zohodesk/popups
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -15,3 +15,5 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
var popups = {}; | ||
var closeGroupPopups = function closeGroupPopups(groupName) { | ||
var closeGroupPopups = function closeGroupPopups() { | ||
var groupName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'global'; | ||
var groupPopups = popups[groupName] || []; | ||
@@ -18,0 +20,0 @@ groupPopups.forEach(function (popup) { |
@@ -37,3 +37,5 @@ 'use strict'; | ||
var popups = {}; | ||
var closeGroupPopups = function closeGroupPopups(groupName) { | ||
var closeGroupPopups = function closeGroupPopups() { | ||
var groupName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'global'; | ||
var groupPopups = popups[groupName] || []; | ||
@@ -40,0 +42,0 @@ groupPopups.forEach(function (popup) { |
{ | ||
"name": "@zohodesk/popups", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "popups popupover modal dialog alert notifications popup handling for whole app", | ||
@@ -14,3 +14,3 @@ "main": "lib/index.js", | ||
"build": "npm run clean && react-cli build:component:cmjs", | ||
"prepare": "npm run build && npm run build:es && npm run build:umd && cp -R es/ .", | ||
"prepare": "npm run build && npm run build:es && npm run build:umd", | ||
"test": "react-cli test", | ||
@@ -17,0 +17,0 @@ "generate": "rc-autocomplete", |
@@ -7,3 +7,3 @@ import React from 'react'; | ||
let popups = {}; | ||
const closeGroupPopups = (groupName)=>{ | ||
const closeGroupPopups = (groupName='global')=>{ | ||
let groupPopups = popups[groupName] || []; | ||
@@ -10,0 +10,0 @@ groupPopups.forEach(popup => { |
Sorry, the diff of this file is too big to display
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
370061
21
3268