Commit ada166b0 authored by Sven Franck's avatar Sven Franck

create backup of gallery widget

parent f849070e
...@@ -273,5 +273,4 @@ if (init) { ...@@ -273,5 +273,4 @@ if (init) {
} }
current.addClass("slide out reverse"); current.addClass("slide out reverse");
} }
*/ */
/* ======================================================================= */ \ No newline at end of file
\ No newline at end of file
define([ define([
'text!header.html!strip' 'app'
, 'text!header.html!strip'
, 'css!header' , 'css!header'
], ],
function (source) { function (App, source) {
var response = {}, def; var response = {}, def;
response.data = source; response.data = source;
...@@ -16,19 +17,19 @@ define([ ...@@ -16,19 +17,19 @@ define([
// flag is set. In rjs2, we will not have to set globals, but we will // flag is set. In rjs2, we will not have to set globals, but we will
// have the problem of trying to access methods published by other gadgets // have the problem of trying to access methods published by other gadgets
// BEFORE they have been published, so it's pretty much the same thing. // BEFORE they have been published, so it's pretty much the same thing.
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