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 2 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6295

    Daniel Silva
    Participant

    Hi,

    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;

    Br,
    Daniel

    • This topic was modified 2 years, 6 months ago by  Daniel Silva.
    #6301

    Sunil Urs
    Keymaster

    Daniel,

    Makes sense. I’ll consider this for next version.


    Sunil Urs

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.