Skip to content

Instantly share code, notes, and snippets.

@blowery
Created June 8, 2010 18:42
Show Gist options
  • Save blowery/430459 to your computer and use it in GitHub Desktop.
Save blowery/430459 to your computer and use it in GitHub Desktop.
// assumes dojo base is loaded
(function(d) {
var spels = {
destroy: [ "destory" ],
connect: [ "conect"]
};
for(var x in spels) {
d.forEach(spels[x], function(n) {
d[n] = d[n] || function() {
console.warn("speling!! called %s as %s", x, n);
d[x].apply(d, arguments);
}
});
}
})(dojo);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment