diff --git a/src/002-config/fc-js-init.js b/src/002-config/fc-js-init.js new file mode 100644 index 0000000000000000000000000000000000000000..ec07dba98be3edcd26bfbcce88e9f63aeb14728a --- /dev/null +++ b/src/002-config/fc-js-init.js @@ -0,0 +1,10 @@ +/* +* SugarCube executes scripts via eval() inside a closure. Thus to make App global, +* we declare it as a property of the window object. I don't know why 'App = {}' +* does not work. +*/ +window.App = { }; +// the same declaration for code parsers that don't line the line above +var App = App || {}; + +App.Entity = {};