Skip to content

Instantly share code, notes, and snippets.

View aaronfrost's full-sized avatar
:octocat:
Software Architect Contractor

Aaron Frost aaronfrost

:octocat:
Software Architect Contractor
View GitHub Profile
<div id="foo">
<div class="bar">Baz</div>
</div>
@aaronfrost
aaronfrost / af5.js
Created March 23, 2013 07:24 — forked from anonymous/af5.js
// Problem with the current way. Closures explode!!!
function Aaron(){
this.favoriteSaying = "I love Google!";
this.saySomething = function(){
console.log(this.favoriteSaying);
}
}
var a = new Aaron();
a.saySomething(); //logs "I love Google!"