Home › forums › Feature Requests & Feedback › give an object to the constructor
This topic contains 1 reply, has 2 voices, and was last updated by Sunil Urs 3 years, 11 months ago.
A small idea.
How about the constructor accepts both a string with the container id and a object?
In the code:
this._container = typeof this._containerId == “string” ? document.getElementById(this._containerId) : this._containerId;
Makes sense. I’ll consider this for next version.
You must be logged in to reply to this topic.