Skip to content

Error with the parenthesis in the article with the explanation about plugin creation. #478

Closed
@trol188

Description

@trol188

=== IT SAYS : ( https://github.com/jquery/learn.jquery.com/blob/master/page/plugins/basic-plugin-creation.md )

(function ( $ ) {

var shade = "#556b2f";

$.fn.greenify = function() {
    this.css( "color", shade );
    return this;
};

}( jQuery ));

==SHOULD SAY: ( the correction is at the last line )
(function ( $ ) {

var shade = "#556b2f";

$.fn.greenify = function() {
    this.css( "color", shade );
    return this;
};

})( jQuery );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions