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

Step function for UI.HTMLElement throws and error #149

Open
gratner opened this issue Nov 23, 2014 · 1 comment
Open

Step function for UI.HTMLElement throws and error #149

gratner opened this issue Nov 23, 2014 · 1 comment

Comments

@gratner
Copy link

gratner commented Nov 23, 2014

Currently, when the UI.HTMLElement is created _super is undefined. This causes the step function of UI.HTMLElement to throw. I'm guessing that UI.IFrame has the same issue. I might be doing something wrong, but the only way I was able to get around it, is to set the step function to noop

 Q.UI.HTMLElement.extend("Elem", {
                init: function (p) {
                    this._super({
                        html: "Hello!"
                    });
                },
                step: function (p) {} // 
            });

this.stage.insert(new Q.Elem());
@vaibhavgeek
Copy link

The HTMLElement added this way does not become a part of canvas. If the HTMLElement is to behave as a sprite it should be inside the canvas no?

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