-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Make sure that init/update are not called when invoking flushToDOM on a non loaded entity #2250
Conversation
Can you explain the remove of the |
It's not removed. It's now part of |
I'm confused that we're now passing |
|
OK. It seems like something needs to change then, either the function signature or what we pass into updateProperties: var Component = module.exports.Component = function (el, attr, id) {
// ...
this.updateProperties(attr); // THIS IS THE ATTRIBUTE NAME.
// ...
};
Component.prototype = {
// ...
/**
* @param {string} value - HTML attribute value.
*/
updateProperties: function (value) {
// ...
// BUT THIS FUNCTION DOC / VAR NAME EXPECTS AN ATTRIBUTE VALUE.
if (value !== undefined) { this.updateCachedAttrValue(value); }
}
} |
… a non loaded entity
The jsdoc for the component constructor was wrong. attr was actually the value of the attribute and not the name. I fixed it. |
r+ |
… a non loaded entity (aframevr#2250)
Fixes inspector aframevr/aframe-inspector#409