Skip to content

Instantly share code, notes, and snippets.

View tskulbru's full-sized avatar

Torstein S. Skulbru tskulbru

View GitHub Profile
var O = {
Foo: function() {
return "Foo for life yo!";
}
};
var M = "Foo";
console.log(O[M]());
namespace.views.MyWizard = Backbone.Views.extend({
initialize: function() {
_.bindAll(this, 'render', 'wizardMethod');
}
render: function() {
this.wizardMethod();
return this;
},