Permalink
Browse files

forgot to explicitly require appready.

  • Loading branch information...
1 parent 2d78fea commit 08650e7fe09855e65f8bbb039cccbafc826aa28e @toolness committed May 19, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 js/main.js
View
7 js/main.js
@@ -10,10 +10,10 @@
var blankURL = $("meta[name='blank-url']").attr("content");
var iframe = $('<iframe id="preview" src="' + blankURL + '"></iframe>');
- define("app-readiness", [], {
+ define("appReady", [], {
load: function(name, req, load, config) {
jQuery.when(errorsLoaded, iframeLoaded).then(function() {
- load(null);
+ load({previewArea: iframe});
});
}
});
@@ -64,6 +64,7 @@ define("main", function(require) {
SocialMedia = require("ui/social-media"),
HelpTemplate = require("template!help"),
ErrorTemplate = require("template!error"),
+ AppReady = require("appReady!"),
publishURL = $("meta[name='publish-url']").attr("content");
var codeMirror = ParsingCodeMirror($("#source")[0], {
@@ -90,7 +91,7 @@ define("main", function(require) {
var preview = LivePreview({
codeMirror: codeMirror,
ignoreErrors: true,
- previewArea: $("#preview")
+ previewArea: AppReady.previewArea
});
var publisher = Publisher(publishURL);
var publishUI = PublishUI({

0 comments on commit 08650e7

Please sign in to comment.