8 ms·
Exactly! And yes, all those "magic numbers" are derived. For example... this.hSpacing = Array.prototype.slice.call(this.parent.blocks.filter( function(n)
by technoguyrob 18y ago
Exactly! And yes, all those "magic numbers" are derived. For example...
this.hSpacing = Array.prototype.slice.call(this.parent.blocks.filter(
function(n){ return n < _this.parent.cols; })
.map(function(n,o){ return o.offsetLeft; })
);
Your function names and decomposition are indeed much easier to read. Thanks again, Neal!