client/js/jquery-plugin.js
function maybeWrapInJquery(val) {
        var transformedVal = val;

        // If the command is returning an `HTMLElement` or `HTMLDocument`, wrap it in a `jQuery` object
        /*jshint -W116*/
        if (val != null && typeof val === "object" &&
           (val.nodeType === 1 || val.nodeType === 9) && val.cloneNode) {

            transformedVal = $(val);
        }

        return transformedVal;
    }
function maybeWrapInJquery(val) {
        var transformedVal = val;

        // If the command is returning an `HTMLElement` or `HTMLDocument`, wrap it in a `jQuery` object
        /*jshint -W116*/
        if (val != null && typeof val === "object" &&
           (val.nodeType === 1 || val.nodeType === 9) && val.cloneNode) {

            transformedVal = $(val);
        }

        return transformedVal;
    }
function maybeWrapInJquery ( val ) { var transformedVal = val ; // If the command is returning an `HTMLElement` or `HTMLDocument`, wrap it in a `jQuery` object /*jshint -W116*/ if ( val != null && typeof val === "object" && ( val . nodeType === 1 || val . nodeType === 9 ) && val . cloneNode ) { transformedVal = $ ( val ) ; } return transformedVal ; }
If the value is an `HTMLElement` or `HTMLDocument`, wrap it in a `jQuery` object
If the value is an HTMLElement or HTMLDocument wrap it in a jQuery object