Skip to content

Instantly share code, notes, and snippets.

View toddpi314's full-sized avatar
💻
Movies, Music & Microcode

Todd Morrison toddpi314

💻
Movies, Music & Microcode
View GitHub Profile
@toddpi314
toddpi314 / closure_leak.js
Created June 5, 2012 00:45
Closure Pinning Memory Leak
// Component Definition
function Component(name) {
this.pageName = name;
}
// Lets decorate the Component instances with
// a method that can do some work
Component.prototype.onLoaded = function() {
// do some fancy work