mgan Posted March 13, 2014 Share Posted March 13, 2014 I cloned the demo repo - https://github.com/ekelokorpi/panda.js-demos and also cloned the pandajs repo and ensured that the relative ../pandas.js symlink worked along with an express-static server I wrote. But the demos all throw errors about this.super() interactivity.html---Uncaught TypeError: Object #<Class> has no method 'super' interactivity.js:61game.Scene.extend.init interactivity.js:61Class core.js:691game.System.game.Class.extend.setSceneNow system.js:184game.System.game.Class.extend.setScene system.js:179game.Loader.game.Class.extend.setScene loader.js:213game.Loader.game.Class.extend.ready loader.js:193game.Loader.game.Class.extend.update loader.js:227game.Loader.game.Class.extend.run loader.js:218(anonymous function) core.js:586animate core.js:605 particles.html----Uncaught TypeError: Object #<Class> has no method 'super' particles.js:44 and so on for each demo. I saw the last commit was for functioning demos for 1.1 release, curious if the most recent pandasjs doesn't work with the demos and some changes are required? Happy to help Quote Link to comment Share on other sites More sharing options...
enpu Posted March 13, 2014 Share Posted March 13, 2014 Hi, I just updated panda.js-demos to support 1.1.6 Let me know if you find any issues. Quote Link to comment Share on other sites More sharing options...
mgan Posted March 13, 2014 Author Share Posted March 13, 2014 aahh I see the change from this.super to this._super I had even opened core.js and looked at the Class.prototype to make sure super was being bound, guess I missed the _. I fetched your changes and the demos work again. Curious would you like a pull request for my repo that has a simple express server that will allow the demos to run locally? I was going to hack on the demos and maybe add some and wanted a way to run them locally so might be helpful for others as well. But wasn't sure if you had the repo configured specifically to work with the pandajs website. Anyways, thanks for the help! Quote Link to comment Share on other sites More sharing options...
enpu Posted March 13, 2014 Share Posted March 13, 2014 Great to hear that it's working now. Not sure if i want to include server on repo, you will need to install local web server anyway when developing html5 games.Even so, i would like to take a look at your code. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.