MCPcopy Create free account
hub / github.com/codecombat/codecombat / initialize

Method initialize

app/collections/Products.js:25–29  ·  view source on GitHub ↗
(models, options)

Source from the content-addressed store, hash-verified

23 }
24
25 initialize (models, options) {
26 if (options == null) { options = {} }
27 if (__guard__(typeof window !== 'undefined' && window !== null ? window.location : undefined, x => x.pathname)) { if (options.url == null) { options.url = '/db/products?path=' + window.location.pathname } }
28 return super.initialize(models, options)
29 }
30
31 getByName (name) { return this.findWhere({ name }) }
32

Callers

nothing calls this directly

Calls 1

__guard__Function · 0.70

Tested by

no test coverage detected