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/>') var $img = $('<img/>')
.one('load', function () { .one('load', function () {
// callback($img); callback($img);
setTimeout(function () { callback($img); }, 1000); // for testing // setTimeout(function () { callback($img); }, 1000); // for testing
}) })
.attr('src', src); .attr('src', src);
}, },

View file

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