New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

arale-dialog

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arale-dialog - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

4

HISTORY.md

@@ -5,2 +5,6 @@ # 历史记录

## 1.5.1
`fixed` #92 修复 IE 低版本的 indexOf 的兼容问题。
## 1.5.0

@@ -7,0 +11,0 @@

2

package.json
{
"name": "arale-dialog",
"version": "1.5.0",
"version": "1.5.1",
"description": "Dialog 是通用对话框容器,提供显隐关闭、遮罩层、内嵌iframe、内容区域自定义以及模态对话框等功能。",

@@ -5,0 +5,0 @@ "keywords": [

@@ -258,3 +258,3 @@ var $ = require('spm-jquery'),

// 把已存在的对话框提到最后一个
mask._dialogs.splice(mask._dialogs.indexOf(existed), 1);
erase(existed, mask._dialogs);
mask._dialogs.push(existed);

@@ -277,6 +277,6 @@ } else {

// 移除 mask._dialogs 当前实例对应的 dialog
var dialogLength = mask._dialogs.length;
var dialogLength = mask._dialogs ? mask._dialogs.length : 0;
for (var i=0; i<dialogLength; i++) {
if (mask._dialogs[i] === this) {
mask._dialogs.splice(mask._dialogs.indexOf(this), 1);
erase(this, mask._dialogs);

@@ -491,1 +491,15 @@ // 如果 _dialogs 为空了,表示没有打开的 dialog 了

}
// erase item from array
function erase(item, array) {
var index = -1;
for (var i=0; i<array.length; i++) {
if (array[i] === item) {
index = i;
break;
}
}
if (index !== -1) {
array.splice(index, 1);
}
}
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