Skip to content

Instantly share code, notes, and snippets.

@phiggins42
Created July 7, 2010 00:32
Show Gist options
  • Save phiggins42/466132 to your computer and use it in GitHub Desktop.
Save phiggins42/466132 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.4/dojo/dojo.xd.js"></script>
<script>
dojo.declare("A", null, {
constructor:function(){},
parented: function(){
console.warn(arguments.length, arguments); // 3, [1,2,3]
return 1;
}
});
dojo.declare("B", A, {
parented: function(){
return this.inherited(arguments, [1, 2, 3]);
}
});
new B().parented();
</script>
</head>
<body class="tundra">
<div></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment