Sha256: 0f0dc02cf86cd7031b6f6ae130bb03352ca3256ea0453a88b438d6d57ce17a53
Contents?: true
Size: 642 Bytes
Versions: 27
Compression:
Stored size: 642 Bytes
Contents
'use strict' define -> (items, luna) -> resource = items[0].resource # TODO create view_model searcher: query: '' search: (event, models) -> {list, searcher} = models searcher.query = $(event.target).val() if searcher.query != '' list.items = luna.search searcher.query else list.items = luna.store.all false list: Object.create null, resource: set: (resource) -> null get: -> resource configurable: true items: set: (new_items) -> items = new_items get: -> items configurable: true
Version data entries
27 entries across 27 versions & 1 rubygems