Add function widgetNode, a simpler and more efficient alternative to
authorMike Taylor <mike@indexdata.com>
Tue, 15 Apr 2014 17:00:44 +0000 (18:00 +0100)
committerMike Taylor <mike@indexdata.com>
Tue, 15 Apr 2014 17:00:44 +0000 (18:00 +0100)
commitb682bc773466148ddeb0ee88be0177702612da6b
tree11ab95d49bf881110571a0c5d8d1449e6a9f0c3d
parentb185d4b7ec95b429e761b4fe2051ddcbbca1dc61
Add function widgetNode, a simpler and more efficient alternative to
findnode for most though not all purposes. widgetNode('Records') is
equivalent to findnode('.mkwsRecords') but works by reference to the
team's registered set of widgets.

This is presently used in just one place, as proof of concept. Many
more to follow, so that uses of findnode should become very rare.
src/mkws-team.js