kaman.functions.js
function expose(subject, name) {
    //console.log(window[name])
    if (subject.isRendered()) {
        exposer(subject, name);
    } else {
        subject.on("attach", function () {
            exposer(subject, name);
        })
    }
}
function expose(subject, name) {
    //console.log(window[name])
    if (subject.isRendered()) {
        exposer(subject, name);
    } else {
        subject.on("attach", function () {
            exposer(subject, name);
        })
    }
}
function expose ( subject , name ) { //console.log(window[name]) if ( subject . isRendered ( ) ) { exposer ( subject , name ) ; } else { subject . on ( "attach" , function ( ) { exposer ( subject , name ) ; } ) } }
a tool to let some object to be exposed to window on
browsers avoiding overwrite existent objects
a tool to let some object to be exposed to window on browsers avoiding overwrite existent objects