Sha256: 9aa249f736725c0d753e89c88f256eafec3e5a15477b9a3be9522c9fb6846a68
Contents?: true
Size: 724 Bytes
Versions: 72
Compression:
Stored size: 724 Bytes
Contents
'use strict' observable = require('indefinido-observable').mixin define (model) -> (items, luna) -> resource = items[0].resource searcher: observable 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 # TODO create view_model list: observable 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
72 entries across 72 versions & 1 rubygems