Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <script> |
michael@0 | 3 | |
michael@0 | 4 | var c = document.getElementsByClassName("x"); |
michael@0 | 5 | Object.defineProperty(c, "length", {set: void 0}); |
michael@0 | 6 | Array.prototype.shift.call(c); |
michael@0 | 7 | |
michael@0 | 8 | </script> |