• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ErikSchierboom / knockout-pre-rendered
94%
master: 95%

Build:
Build:
LAST BUILD BRANCH: 0.11.0
DEFAULT BRANCH: master
Repo Added 12 Apr 2015 12:51PM UTC
Files 1
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH 0.9.2
branch: 0.9.2
CHANGE BRANCH
x
Reset
  • 0.9.2
  • 0.10.0
  • 0.10.1
  • 0.11.0
  • 0.7.0
  • 0.7.1
  • 0.7.2
  • 0.8.0
  • 0.9.0
  • 0.9.1
  • 0.9.1-beta
  • appveyor
  • coverage
  • data-change-callback
  • examples
  • fix-foreach-virtual-elements-bug
  • gulp-v4
  • master
  • tr-tags-script
  • unknown-attribute-bug
  • update-dependencies

pending completion
88

push

travis-ci

ErikSchierboom
Nodes per element (#51)

* Fixed some browser compatibility issues with older versions of IE.

   * Changed how `<tr>` elements are read from a named template (original code did not work in IE<10).
   * Do not use cloneNode or delete script tag based templates. This breaks the templates in IE<9.
   * Used `ko.utils.arrayMap` instead of `.map` since the latter is unsupported in IE<9.
   * Removed hanging commas that cause syntax errors in IE<8.

These changes allow the ko-pre-rendered bindings to support the same browser versions as knockout itself.

* Added "nodesPerElement" option to indicate how many adjacent HTML nodes should be associated with a single element in the array.

   * If unspecified, the default nodesPerElement is 1
   * Modified "makeTemplateNode" to support multiple nodes in the template.
   * Modified the "existing" method so it correctly applies bindings when nodesPerElement > 1.
   * Modified the "createElements" method so it creates the correct number of array elements for the number of existing HTML nodes.

* Added some tests for the "nodesPerElement" option.

Tested:
   * Initialization of the observable array based on existing markup.
   * Proper rendering of multi-node templates when adding new items to the observable array.
   * Proper removal of markup when removing items from the observable array.

* Updated package version and distributable files.

* Added nodesPerElement exmaples.

* Updated version info in README.

* Added test for script tag template with tr elements.

* Fixed code styling and indentation issues

* Couple more styling fixes.

192 of 205 relevant lines covered (93.66%)

42.74 hits per line

Relevant lines Covered
Build:
Build:
205 RELEVANT LINES 192 COVERED LINES
42.74 HITS PER LINE
Source Files on 0.9.2
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
88 0.9.2 Nodes per element (#51) * Fixed some browser compatibility issues with older versions of IE. * Changed how `<tr>` elements are read from a named template (original code did not work in IE<10). * Do not use cloneNode or delete script tag... push 07 Jun 2018 03:47PM UTC ErikSchierboom travis-ci pending completion  
See All Builds (62)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc