Commit 91ec3826 authored by Sven Franck's avatar Sven Franck

fix: forgot to remove window.App form register module

parent 77cb7fbd
define([ define([
'text!register.html!strip' 'app'
, 'text!register.html!strip'
, 'css!register' , 'css!register'
], ],
function (source) { function (App, source) {
var response = {}; var response = {};
response.data = source; response.data = source;
response.callback = function (self) { response.callback = function (self) {
if (window.App === undefined) { if (App === undefined) {
def = new $.Deferred; def = new $.Deferred;
def.done(function(gadget) { def.done(function(gadget) {
// prefix instance-ids, pass JSON // prefix instance-ids, pass JSON
window.App.renderGadgets(gadget); App.renderGadgets(gadget);
}); });
window.fallbackLoader.deferreds.push(def); window.fallbackLoader.deferreds.push(def);
window.fallbackLoader.args.push(self); window.fallbackLoader.args.push(self);
} else { } else {
// prefix instance-ids, pass JSON // prefix instance-ids, pass JSON
window.App.renderGadgets(self); App.renderGadgets(self);
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment