Skip to content

Instantly share code, notes, and snippets.

@erikvold
Created March 2, 2011 18:58
Show Gist options
  • Save erikvold/851474 to your computer and use it in GitHub Desktop.
Save erikvold/851474 to your computer and use it in GitHub Desktop.
var mvc = {
m: {},
v: {},
c: {},
create: function(type, circuit, fuseactions) {
switch (type) {
case "model":
case "controller":
case "view":
return mvc[type[0]][circuit] = fuseactions;
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment