DoneJS StealJS jQuery ++ FuncUnit DocumentJS
3.0.0
2.3.27

 

  • Github
  • Twitter
  • Chat
  • Forum
  • Guides
  • Core
  • Ecosystem
  • Infrastructure
    • can-construct
    • can-control
    • can-event
    • can-event/async/async
    • can-event/batch/batch
    • can-observation
    • can-simple-map
    • can-util
    • can-view-callbacks
    • can-view-live
    • can-view-model
    • can-view-nodelist
      • types
        • NodeList
      • methods
        • first
        • last
        • nestList
        • nestReplacements
        • register
        • unregister
        • unregisterChildren
        • update
    • can-view-parser
    • can-view-scope
    • can-view-target
  • Legacy
  • Bitovi
    • Bitovi.com
    • Blog
    • Consulting
    • Training
    • Open Source
  • Chat
  • Forum
  • Star
  • Follow @canjs
  • CanJS
  • /
  • Infrastructure
  • /
  • can-view-nodelist
  • /
  • nestReplacements
  • / On this page
    • nestReplacements

      function
      • source

      nodeLists.nestReplacements(list)

      Goes through each node in the list. [el1, el2, el3, ...] Finds the nodeList for that node in replacements. el1's nodeList might look like [el1, [el2]]. Replaces that element and any other elements in the node list with the nodelist itself. resulting in [ [el1, [el2]], el3, ...] If a replacement is not found, it was improperly added, so we add it as a deepChild.

      Parameters

      1. list {NodeList}:

        The nodeList of nodes to go over

      CanJS is part of DoneJS. Created and maintained by the core DoneJS team and Bitovi. Currently 3.0.0.