vendor/kinetic-v5.1.0.js
function(container) {
            if( typeof container === STRING) {
                var id = container;
                container = Kinetic.document.getElementById(container);
                if (!container) {
                    throw 'Can not find container in document with id ' + id;
                }
            }
            this._setAttr(CONTAINER, container);
            return this;
        }
function(container) {
            if( typeof container === STRING) {
                var id = container;
                container = Kinetic.document.getElementById(container);
                if (!container) {
                    throw 'Can not find container in document with id ' + id;
                }
            }
            this._setAttr(CONTAINER, container);
            return this;
        }
function ( container ) { if ( typeof container === STRING ) { var id = container ; container = Kinetic . document . getElementById ( container ) ; if ( ! container ) { throw 'Can not find container in document with id ' + id ; } } this . _setAttr ( CONTAINER , container ) ; return this ; }
set container dom element which contains the stage wrapper div element
@method
@memberof Kinetic.Stage.prototype
@param {DomElement} container can pass in a dom element or id string
set container dom element which contains the stage wrapper div element