CRM-12943 - Move Collection.fetchCreate() to CRM.Backbone.findCreate()
authorTim Otten <totten@civicrm.org>
Fri, 19 Jul 2013 21:01:14 +0000 (14:01 -0700)
committerTim Otten <totten@civicrm.org>
Fri, 19 Jul 2013 21:01:14 +0000 (14:01 -0700)
commit4bbb9761574e88bafd782408ba4fe4e135677c6f
treef9f137a116105d8207b18fe2722e2307184cff5b
parent3c97257f523cbbc0549c93374e67edba3ed96f05
CRM-12943 - Move Collection.fetchCreate() to CRM.Backbone.findCreate()

This may be a subtle point, but in the current use-cases, we don't really
have a "collection" that we're trying to maintain.  We're just using the
collection to facilitate the search.  If have this helper a method of the
collection, then there are design questions about how one uses the
collection (eg with repeated calls to fetchCreate), but that's all
extraneous.

----------------------------------------
* CRM-12943: Make HTML prototype of job UI functional
  http://issues.civicrm.org/jira/browse/CRM-12943
js/crm.backbone.js
tests/qunit/crm-backbone/test.js