Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: constructor error #9

Closed
uznam8x opened this issue Jul 3, 2020 · 2 comments
Closed

error: constructor error #9

uznam8x opened this issue Jul 3, 2020 · 2 comments

Comments

@uznam8x
Copy link

uznam8x commented Jul 3, 2020

class Test extends UIElement {
        constructor(app, props) {
          super();
        }
}


Uncaught TypeError: Cannot read property 'on' of undefined
    at eval (UIElement.js:142)
    at Array.forEach (<anonymous>)
    at eval (UIElement.js:136)
    at Array.forEach (<anonymous>)
    at Test.initializeStoreEvent (UIElement.js:117)
    at new UIElement (UIElement.js:80)
    at new Test ((index):5)
    at eval (EventMachine.js:504)
    at Array.forEach (<anonymous>)
    at eval (EventMachine.js:491)
@easylogic
Copy link
Owner

super (app, props)

그대로 넘기세요. 예외 처리는 해둘게요.

@easylogic
Copy link
Owner

생성자에 뭔가를 하고 싶으면

initialize() { }  

재 정의 해서 해주세요.

easylogic added a commit that referenced this issue Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants