knockout-fast-foreach

0.6.0 • Public • Published

knockout-fast-foreach

An experiment in faster foreach binding.

Include in your project in the usual ways, then instead of foreach use fastForEach.

Demo on JSBin

Testing

Run tests from the command line with npm test, or on Windows npm run test_win.

Run tests in Chrome by installing karma-chrome-launcher then $ ./node_modules/karma/bin/karma start --browsers Chrome; the same applies for other browsers supported by Karma.

Changes

16 Dec 2016 – 🔭 0.6.0

  • Reuse DOM nodes when array items move [#33, #34]
  • Improve internal nodes handling [#31, #32]

27 Sep 2015 – 📇 0.5.5

  • Improved batch addition (closes #30)

27 Sep 2015 - ⛵️ 0.5.4

  • add afterAdd and beforeRemove

25 Sep 2015 – 🍭 0.5.3

  • fix $index when list is made from virtual elements

23 Sep 2015 - 👽 0.5.2

  • fix $index not working when template starts with a text node

22 Sep 2015 – 🐝 0.5.0

  • add $index() support (disable by passing noIndex: true)

16 Jul 2015 - 🌕 0.4.1

  • fix push.apply not working on NodeList in older Webkit versions

14 Jul 2015 – 🎂 0.4.0

  • uses documentFragment when possible
  • use karma for testing
  • add .eslintrc and clean up source

License

MIT Licensed.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.6.0207latest

Version History

VersionDownloads (Last 7 Days)Published
0.6.0207
0.5.50
0.5.40
0.5.30
0.5.20
0.5.10
0.5.00
0.4.10
0.4.00
0.3.20
0.3.00

Package Sidebar

Install

npm i knockout-fast-foreach

Weekly Downloads

63

Version

0.6.0

License

MIT

Last publish

Collaborators

  • bmh