It is possible to completely move a particular plugin namespace into
other one?

e.g.

if (typeof Company == "undefined") {
    var Company = {};
}

Company.form = {};
Company.form.validator = jQuery.validator; // Assume already loaded

// Now I want to modify some of its internal value
Company.form.validator.messages.required= "My Required";

// However, it is different from
alert( $.validator.messages.required ); // Show the original value,
seems only a copy of validator is assigned to Company.form.validator,
but not pass its reference

Reply via email to