Skip to content

Clone at wrong position #2

@brendo

Description

@brendo

I came across an issue when using clone that my original inline element was being shown when boxy was executed. To fix this:

http://github.com/jaz303/boxy/blob/master/src/javascripts/jquery.boxy.js#L367

should be moved above the previous line so that only the cloned element gets the boxy-content class. ie:

    if (this.options.clone) newContent = newContent.clone(true);
    newContent = jQuery(newContent).css({display: 'block'}).addClass('boxy-content');

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