Adds nesting of text nodes
Read the can-view-nodelist API docs on CanJS.com.
See the latest releases on GitHub.
The contribution guide has information on getting help, reporting bugs, developing locally, and more.
Node list helpers
Home Page: https://canjs.com/doc/can-view-nodelist.html
License: MIT License
Adds nesting of text nodes
Read the can-view-nodelist API docs on CanJS.com.
See the latest releases on GitHub.
The contribution guide has information on getting help, reporting bugs, developing locally, and more.
This issue is used to note progress and remaining todos of removing nodelists from CanJS.
Status: Getting can-view-live.list to work.
can-dom-mutate/node
apis?enqueueByQueue
need to loop through every queue or should it be using Object.keys()
?can.setElement
. (other observables will need this)onNodeRemoved()
handlers anytime an element is removed from a parent node (including all children). This is probably SLOW.patch-sort
module that can make sure deletes come before inserts. This was needed to fix a likely long standing bug in can-view-live.list
. Now we will remove elements from the dom immediately, but do insertions later. It's a bit hacking right now.The after
method in can-view-nodelist
fails to take into account recently unparented DOM nodes.
It calls domMutate.appendChild.call(last.parentNode, newFrag)
where parentNode
may be null
, leading to a crash.
Specifically; this happens when a node which renders with the live.list
helper is removed in the same logic tick as when the list itself is emptied out, leading to its addFalseyIfEmpty
branch being executed.
Branch | Build failing π¨ |
---|---|
Dependency | can-util |
Current Version | 3.3.6 |
Type | dependency |
This version is covered by your current version range and after updating it in your project the build failed.
As can-util is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you itβs very likely also breaking them.
I recommend you give this issue a very high priority. Iβm sure you can resolve this πͺ
makeMutationEvent correctly handles adding multiple listeners
The new version differs by 3 commits .
000f4b6
Update dist for release
b2bfce8
Merge pull request #237 from canjs/two-remove-event-listeners
027aac3
Counting the number of event handlers for each element/event combo
See the full diff.
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
Scenario:
Stache sort of like this:
{{#each list}}
<input type="text" value:from="name" />
{{/each}}
<a on:click="changeList()">Change</a>
changeList()
should be a function that will manipulate list
in some way, such as adding or removing elements. Each time changeList()
is called, a nodeList will be added to the replacements
list associated with the each
helper, which never appears to be cleaned up. This results in a full leak of the entire UI associated with the list.
1.3.4
to 1.3.5
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
can-dom-mutate is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 3 commits.
d72d54a
1.3.5
a32913a
Merge pull request #49 from canjs/typeof-set-take-2
5094ee6
changing typeof Set to fix IE11 issue
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Branch | Build failing π¨ |
---|---|
Dependency | can-util |
Current Version | 3.8.5 |
Type | dependency |
This version is covered by your current version range and after updating it in your project the build failed.
can-util is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you itβs very likely also breaking them.
I recommend you give this issue a very high priority. Iβm sure you can resolve this πͺ
The new version differs by 3 commits.
d16c7de
Update dist for release
9c1d867
fixing postversion script
f381873
Do Not Merge - can-reflect (#287)
See the full diff
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
It appears that parent.replacements can be null at times. I'm not sure why its null but it throws an error and the app breaks.
See below:
test('unregisters child nodeLists', function () {
expect(3);
// two spans that might have been created by #each
var spansFrag = fragment("<span>1</span><span>2</span>");
var spansList = new NodeList( spansFrag );
spansList.onUnbound(function(){
ok(true,"unregistered spansList");
});
// A label that might have been created by #foo
var labelFrag = fragment("<label>l</label>");
var labelList = new NodeList(labelFrag);
labelList.onUnbound( function(){
ok(true,"unregistered labelList");
});
// the html inside #if}
var ifList = new NodeList( frag(["~","","-",""]) );
ifList.splice(1,1,spansFrag);
// 4 because 2 elements are inserted, and ifChildNodes is live
ifList.splice(4,1,labelFrag);
ifList.onUnbound(function(){
ok(true,"unregistered ifList");
});
deepEqual(ifList.nodes,[
ifEls[0],
spansList,
ifEls[2],
labelList
]);
ifList.replace( [document.createTextNode("empty")] );
});
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.