Skip to content

background-color should be backgroundColor  #364

Closed
@carousel

Description

@carousel

This is from the example page - how to write plugins:

(function ( $ ) {
$.fn.greenify = function( options ) {

// This is the easiest way to have default options.
var settings = $.extend({
  "color": "#556B2F",  // These are the defaults
  "background-color": "white" // it should be backgroundColor
}, options );

// Greenify the collection based on the settings variable
return this.css({
  "color": settings.color,
  "background-color": settings.background-color // it should be settings.backgroundColor
});

};
}( 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