Skip to content

Commit 66ca7c0

Browse files
committed
Merge pull request #1 from aui/master
fix bug #170
2 parents 6437d61 + fe22ff2 commit 66ca7c0

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

dist/dialog-min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dialog-plus-min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dialog-plus.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! artDialog v6.0.4 | https://github.com/aui/artDialog */
1+
/*! artDialog v6.0.5 | https://github.com/aui/artDialog */
22
!(function () {
33

44
var __modules__ = {};
@@ -1105,7 +1105,7 @@ $.extend(prototype, {
11051105
if (typeof html === 'object') {
11061106
html = $(html);
11071107
$content.empty('').append(html.show());
1108-
this.addEventListener('remove', function () {
1108+
this.addEventListener('beforeremove', function () {
11091109
$('body').append(html.hide());
11101110
});
11111111
// String

dist/dialog.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! artDialog v6.0.4 | https://github.com/aui/artDialog */
1+
/*! artDialog v6.0.5 | https://github.com/aui/artDialog */
22
!(function () {
33

44
var __modules__ = {};
@@ -1105,7 +1105,7 @@ $.extend(prototype, {
11051105
if (typeof html === 'object') {
11061106
html = $(html);
11071107
$content.empty('').append(html.show());
1108-
this.addEventListener('remove', function () {
1108+
this.addEventListener('beforeremove', function () {
11091109
$('body').append(html.hide());
11101110
});
11111111
// String

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "artDialog",
3-
"version": "6.0.4",
3+
"version": "6.0.5",
44
"readmeFilename": "README.md",
55
"description": "经典的网页对话框组件,内外皆用心雕琢",
66
"homepage": "https://github.com/aui/artDialog",

src/dialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ $.extend(prototype, {
339339
if (typeof html === 'object') {
340340
html = $(html);
341341
$content.empty('').append(html.show());
342-
this.addEventListener('remove', function () {
342+
this.addEventListener('beforeremove', function () {
343343
$('body').append(html.hide());
344344
});
345345
// String

test/content-element.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<script>
2020
seajs.use(['jquery', '../src/dialog'], function ($, dialog) {
21-
21+
window.dialog = dialog;
2222
$('#test').on('click', function () {
2323
alert('click')
2424
});

0 commit comments

Comments
 (0)