Let's keep going though, if we now remove the ListView itself from the DOM we've got another problem:
We've removed the UL node from the DOM, but we've left the last 2 instances of ItemView zombified. They're still responding to model events and their DOM nodes are detached.
My basic approach is that if a view creates another view, then it should be responsible for cleaning it up also. Let's do that now. The plan is to fire an event on the ListView…
…console and a curious mind. I don't think the book contains a word about either concurrency or the DOM. Instead, it pokes its way through JavaScript itself, taking things apart to see how they work, like a curious gnome enjoying a leisurely stroll through a giant machine. Or like Donald Duck In Mathmagic Land , but with a strong emphasis on higher-order functions.
From the book's blurb:
JavaScript Allongé emphasizes functions as first-class values, and topics …
Life of a webpage: DOM, CSSOM, rendering, acceleration
Part two picks up from slide 79 and is focused on the architecture and the execution model of the browser:
Tokenizing, parsing, and construction of the DOM
Building the Render Tree ( DOM and CSSOM)
Measuring visual & rendering performance
Hardware acceleration 101
Putting it all into practice on a synthetic example
Critical Path analysis for guardian.co.uk
Performance rules, tips and tricks …
…URGENT: Faye security releases - And yes, one more.
Dependency Injection != Inversion of Control - Just in case you'd like to go back from security issues to arguing about patterns.
Gem Badge - Automatically link your Github repo to built gems.
You Don't Need the DOM Ready Event - Speeding up your javascript a bit.
As the DOM is loaded, jQuery Mobile injects additional needed elements and CSS classes based on the various data-* attributes to produce the desired effect.
I would not be providing a balanced view point if I did not mention the following associated challenges:
Since "logical pages" are defined using div elements enhanced with data-role="page" attribute which causes the physical .html page to become large and difficult to maintain: <div id="page1" …
…I'm not saying it's wrong, just that I believe html should stay where it belongs... in the DOM. Heck, they even created a gem nested_form .
I think we can make it simpler, painless, elementary.
That's where the following little ditty comes in handy. We are creating the exact same field structure that is used for entering a SubUnit, but hiding the html so that we can use JavaScript to copy-and-append to the visible entry area. #new-sub-unit-fields.hidden = …
Starting to feel like we might actually have a winter this year.
Git Gutter - ST2 plugin that shows git line status in the gutter.
Labrador 0.2 - Database client focused specifically on Rails development databases.
TraceKit - JavaScript library for uniform stack traces across all the major browsers.
box2d-jQuery - Amusing code that turns your DOM into "physical" objects that fall down and can be kicked around.
…
…with a few self-help books on how to start a business, Derek, Cam and Dom began planning their sure-fire assault on the business world, with their one great idea.
And despite our best laid plans, supreme confidence, and all the energy in the world, the only thing that seemed to be constant in those first couple years were our failures. Failures to convince people to take us seriously, failures to get paid when we did the work, and sometimes things like failure to renew the domain name …
…specification provides some additional primitives that make it possible to explain more of the existing DOM behavior in terms of JavaScript. While designing ECMAScript 6, the committee has repeatedly discussed how certain new features could help explain more of the DOM API.
Today, the web platform inherits a large number of existing specifications designed at one of the ends of the layering spectrum. I would like to see the TAG make an explicit effort to describe how the working groups …
§ ECT - client and server-side templates , based on CoffeeScript and supports Express 3.0.
§ Using CSS animations to detect DOM insertions .
§ Javascript - the real bad parts .
§ why ["1","2","3"].map(parseInt) gives the wrong results .
§ Infographic on form size and conversion .
§ TalkTo lets you text a business, so you don't have to call them. Welcome to the 21st century.
§ Diego Basch :