API Docs for:
Show:

CharmStore Class

Defined in: app/store/charm.js:14
Module: store.charm
Parent Module: store

The CharmStore class.

Item Index

Methods

_normalizeCharms

()

Convert the charm data into Charm instances, using only id and relevance. Group them into series. The series are arranged with first the defaultSeries, if any, and then all other available series arranged from newest to oldest. Within each series, official charms come first, sorted by relevance if available and package name otherwise; and then owned charms follow, sorted again by relevance, if available, and package name otherwise.

find

(
  • query
)
Object

Parameters:

  • query String

    Either a string that is passed directly to the search url, or a hash that is marshalled to the correct format (e.g., {series:precise owner:charmers}).

Returns:

Object: CharmId instances grouped by series and ordered within the groups according to the CharmId compare function.