src/render.js
function(suppliedConfig) {

    var targetElement = suppliedConfig.el || getConfig().el;

    rootTarget = $(targetElement);

    if (rootTarget.length === 0) {
      throw triggerError('No target DOM element was found (' + targetElement + ')');
    }

    rootTarget.addClass('bookingjs');
    rootTarget.children(':not(script)').remove();

  }
function(suppliedConfig) {

    var targetElement = suppliedConfig.el || getConfig().el;

    rootTarget = $(targetElement);

    if (rootTarget.length === 0) {
      throw triggerError('No target DOM element was found (' + targetElement + ')');
    }

    rootTarget.addClass('bookingjs');
    rootTarget.children(':not(script)').remove();

  }
function ( suppliedConfig ) { var targetElement = suppliedConfig . el || getConfig ( ) . el ; rootTarget = $ ( targetElement ) ; if ( rootTarget . length === 0 ) { throw triggerError ( 'No target DOM element was found (' + targetElement + ')' ) ; } rootTarget . addClass ( 'bookingjs' ) ; rootTarget . children ( ':not(script)' ) . remove ( ) ; }
Make sure DOM element is ready and clean it
Make sure DOM element is ready and clean it