Skip to content

Appends unwanted client info to JS object. #14

@matthewgonzalez

Description

@matthewgonzalez

For those of us who are using javascript frameworks to send and receive json objects to the backend, having the clientside information appended to our JS objects is unacceptable.

EDIT: To be clear, this is when console.loging a JS object that will eventually be sent to the backend.

The offending code is on lines 129 & 130:

        // Let's grab the additional logging info before we send this off.
        $.extend(what, _buildClientInfo());

This would be better changed to:

        // Let's grab the additional logging info before we send this off.
        var result = {};
        $.extend(result, what, _buildClientInfo());;

then send result along with the data:

        _data[defaults.query_var] = JSON.stringify(result);

Thanks for the plugin. Continue the great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions