Skip to content

Improve the enQuery construct to use a class #116

@enrh

Description

@enrh

Where I return my jQuery-like object I could instead reference a class here.

/**
 * Construct element for displaying the specified color.
 *
 * @param {string} input
 * @param {string|null} label
 * @returns {Object}
 */
function colordiv(
  input,
  label=null,
) {

  let element =
    $('<div/>').addClass(
      'encommon_colordiv');

  ...

  return element; }

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions