Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

Commit

Permalink
dojo.delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
brylie committed Jul 24, 2011
1 parent 32fc729 commit 1c63736
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dojo/dojo.delegate.js
@@ -0,0 +1,9 @@
function Foo() {
this.talk = function() {
console.log("I'm", this.name);
}
}

var bar = dojo.delegate(new Foo, {name: "Bar"});

bar.talk();

0 comments on commit 1c63736

Please sign in to comment.