Skip to content

Commit

Permalink
CHG: bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
farthinker committed Oct 17, 2018
1 parent 2bc9ea4 commit 65d78cb
Show file tree
Hide file tree
Showing 10 changed files with 3,464 additions and 15 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simditor",
"version": "2.3.20",
"version": "2.3.21",
"homepage": "http://simditor.tower.im/",
"authors": [
"farthinker <farthinker@gmail.com>"
Expand Down
8 changes: 4 additions & 4 deletions lib/simditor.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* Simditor v2.3.20
* Simditor v2.3.21
* http://simditor.tower.im/
* 2018-08-23
* 2018-10-17
*/
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
Expand Down Expand Up @@ -3157,7 +3157,7 @@ Popover = (function(superClass) {
}
this.el.siblings('.simditor-popover').each(function(i, popover) {
popover = $(popover).data('popover');
if (popover.active) {
if (popover && popover.active) {
return popover.hide();
}
});
Expand Down Expand Up @@ -4489,7 +4489,7 @@ ImageButton = (function(superClass) {
return;
}
$img = $mask.data('img');
if (!($img.hasClass('uploading') && $img.parent().length > 0)) {
if (!($img && $img.hasClass('uploading') && $img.parent().length > 0)) {
$mask.remove();
return;
}
Expand Down
Loading

0 comments on commit 65d78cb

Please sign in to comment.