Removes artifical delay.

This commit is contained in:
Lars Jung 2013-07-16 14:07:17 +02:00
parent 0c9f1655c6
commit b3ffd4f621
2 changed files with 4 additions and 4 deletions

View File

@ -100,8 +100,8 @@ modulejs.define('ext/preview-img', ['_', '$', 'core/settings', 'core/resource',
var $img = $('<img/>')
.one('load', function () {
// callback($img);
setTimeout(function () { callback($img); }, 1000); // for testing
callback($img);
// setTimeout(function () { callback($img); }, 1000); // for testing
})
.attr('src', src);
},

View File

@ -149,8 +149,8 @@ modulejs.define('ext/preview-txt', ['_', '$', 'core/settings', 'core/resource',
dataType: 'text',
success: function (content) {
// callback(content);
setTimeout(function () { callback(content); }, 1000); // for testing
callback(content);
// setTimeout(function () { callback(content); }, 1000); // for testing
},
error: function (jqXHR, textStatus, errorThrown) {