editor
editor copied to clipboard
__start__.js is using a deprecated method
__start__.js file in the downloaded build is using a deprecated .loadScene method:
var configure = function () {
app.configure(CONFIG_FILENAME, function (err) {
if (err) {
console.error(err);
}
configureCss(app._fillMode, app._width, app._height);
// do the first reflow after a timeout because of
// iOS showing a squished iframe sometimes
setTimeout(function () {
pcBootstrap.reflow(app, canvas);
pcBootstrap.reflowHandler = function () { pcBootstrap.reflow(app, canvas); };
window.addEventListener('resize', pcBootstrap.reflowHandler, false);
window.addEventListener('orientationchange', pcBootstrap.reflowHandler, false);
app.preload(function (err) {
if (err) {
console.error(err);
}
app.loadScene(SCENE_PATH, function (err, scene) {
if (err) {
console.error(err);
}
app.start();
});
});
});
});
};
