Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(clone) Check for & use cloneOf method when cloning objects #8307

Closed
wants to merge 1 commit into from

Commits on Nov 6, 2019

  1. feat(clone) Check for & use cloneOf method when cloning objects

    Adds a check in the `clone` function to see if the given parameter has
    a `cloneOf` method.  If the method exists then the `clone` method
    assumes that this method will return a clone of the called object and
    thus invokes it to complete its task.
    
    Fixes Automattic#8299
    stieg committed Nov 6, 2019
    Configuration menu
    Copy the full SHA
    8060e7e View commit details
    Browse the repository at this point in the history