Sha256: 66ac5105327a5fdd63815ad31748e08092e0071aede2bc4f4ccdc27cbb86d31e
Contents?: true
Size: 912 Bytes
Versions: 2
Compression:
Stored size: 912 Bytes
Contents
extend = require 'assimilate' storable = require './storable' # merge = extend.withStrategy 'deep' stampit = require '../../vendor/stampit' queryable = # FIXME don't let everyone use the same storage instance! or let it? storage: storable() find: (key) -> throw new TypeError "InvalidFind: #{@resource.toString()}.find was called with a falsey value" unless key @storage.store key every: (callback) -> callback @storage.values() where: -> throw new Error 'queryable.where: Not implemented yet' # Extend indemma # TODO use stampit to extend record and model model = window.model # TODO better way to get parent record = window.record # TODO better way to get parent # queryable = stampit.compose queryable, storable model.queryable = true module.exports = queryable model.mix (modelable) -> # TODO use stampit to extend record and model extend modelable, queryable
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ende-0.5.22 | components/indefinido/indemma/master/src/lib/record/queryable.coffee |
ende-0.5.21 | components/indefinido/indemma/master/src/lib/record/queryable.coffee |