rappit.babysitterdeprecated

Backbone.Babysitter for Exoskeleton.

Usage no npm install needed!

<script type="module">
  import rappitBabysitter from 'https://cdn.skypack.dev/rappit.babysitter';
</script>

README

Rappit.BabySitter

Backbone.Babysitter for Exoskeleton.

About Backbone.BabySitter

Backbone provides a lot of functionality in its views, but does not directly provide a way to manage child views or nested views. This is not terribly difficult to do on your own, but it gets tedious to write the same code over and over again.

Backbone.Babysitter provides a simple way to manage an unknown number of child views within a Backbone.View, or other object that needs to track a list of views.

Backbone.Babysitter and its documentation can be found here.

About Rappit.BabySitter

Rappit.BabySitter removes the hard depencency of Underscore.js in Backbone.Babysitter.

Differences

The container object borrows several functions from Underscore.js, to provide iterators and other collection functions, including:

  • forEach
  • each
  • map
  • find
  • detect
  • filter
  • select
  • reject
  • every
  • all
  • some
  • any
  • include
  • contains
  • invoke
  • toArray
  • first
  • initial
  • rest
  • last
  • without
  • isEmpty
  • pluck

In no-underscore environment, there are no underscore-inspired Collection methods, but there are ES5-inspired methods:

  • forEach
  • map
  • filter
  • some
  • every

ChangeLog

For a complete change log, see the CHANGELOG.md file.

License

MIT - see LICENSE.md