Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

dojo.delegate

  • Loading branch information...
commit 1c637368a0fc371fed0ce89db72c4e31a745664d 1 parent 32fc729
@brylie authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 dojo/dojo.delegate.js
View
9 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();
Please sign in to comment.
Something went wrong with that request. Please try again.