fix img load event

This commit is contained in:
joyqi
2018-07-25 10:56:09 +08:00
parent 92a40c87a5
commit 1d56948c4d
2 changed files with 2 additions and 2 deletions

View File

@@ -97,7 +97,7 @@ $(document).ready(function () {
if (count == 0) {
reloadScroll(true);
} else {
images.load(function () {
images.bind('load error', function () {
count --;
if (count == 0) {

View File

@@ -25,7 +25,7 @@ function scrollableEditor(el, preview) {
test = $('<div></div>').appendTo(document.body),
focused = false;
for (k in styles) {
for (var k in styles) {
if (k.match(/^(direction|font-family|font-size|font-style|font-weight|letter-spacing|line-height|text-align|vertical-align|white-space|word-wrap|word-break|word-spacing)$/i)) {
css[k] = styles[k];
}