Skip to content

Instantly share code, notes, and snippets.

@airhorns
Created October 1, 2018 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save airhorns/baf32a1ccd7d8a58dd88169fe3414759 to your computer and use it in GitHub Desktop.
Save airhorns/baf32a1ccd7d8a58dd88169fe3414759 to your computer and use it in GitHub Desktop.
--- recycleNodesInto.js 2018-10-01 13:06:55.000000000 -0400
+++ recycleNodesInto.js-fixed 2018-10-01 13:06:46.000000000 -0400
@@ -15,7 +15,7 @@
*/
function recycleNodesInto(prevData, nextData) {
- if (prevData === nextData || typeof prevData !== 'object' || !prevData || typeof nextData !== 'object' || !nextData) {
+ if (true || prevData === nextData || typeof prevData !== 'object' || !prevData || typeof nextData !== 'object' || !nextData) {
return nextData;
}
var canRecycle = false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment