Fix a race condition in the file app

pull/1/head
yflory 8 years ago
parent 4eeea93265
commit a57f8679c5

@ -17,7 +17,8 @@ define([
var APP = {}; var APP = {};
$(function () { $(function () {
// TODO race condition with contents() here
var andThen = function () {
var ifrw = $('#pad-iframe')[0].contentWindow; var ifrw = $('#pad-iframe')[0].contentWindow;
var $iframe = $('#pad-iframe').contents(); var $iframe = $('#pad-iframe').contents();
var $form = $iframe.find('#upload-form'); var $form = $iframe.find('#upload-form');
@ -38,7 +39,6 @@ define([
var uploadMode = false; var uploadMode = false;
var andThen = function () {
var $bar = $iframe.find('.toolbar-container'); var $bar = $iframe.find('.toolbar-container');
var secret; var secret;

Loading…
Cancel
Save