xeogl icon indicating copy to clipboard operation
xeogl copied to clipboard

Cannot set property 'Class' of undefined

Open axmand opened this issue 8 years ago • 2 comments

Description of the problem
   // Create a new Class that inherits from this class
    Class.extend = function (prop) {

reports error 'Cannot set property 'Class' of undefined' . Perhaps converts 'Class' by useing babel can resolve this problem?

xeogl version
  • [ ] Dev
  • [x] Master
  • [ ] ...
Browser
  • [ ] All of them
  • [ ] Chrome
  • [ ] Firefox
  • [ ] Internet Explorer
  • [x] nodejs
OS
  • [ ] All of them
  • [x] Windows
  • [ ] Linux
  • [ ] Android
  • [ ] IOS
Hardware Requirements

axmand avatar Sep 02 '17 10:09 axmand

Oooh yes I know. Prevents xeogl from being used with Browserify as well. I will be looking at this, but possibly not for a few weeks. If you're able to fix this in a pull request, we'd be super grateful ;)

xeolabs avatar Sep 03 '17 14:09 xeolabs

Hi, @xeolabs Would you consider to upgrade xeogl classes to ES6 class? Then we could use tools like babel / rollup to produce consumable distributions for AMD/UMD/Commonjs and ES6 bundlers.

fuzhenn avatar Sep 04 '17 14:09 fuzhenn