fix img load event
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user