Skip to content

Instantly share code, notes, and snippets.

@zjhiphop
Created August 14, 2012 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zjhiphop/3348001 to your computer and use it in GitHub Desktop.
Save zjhiphop/3348001 to your computer and use it in GitHub Desktop.
Compose toString problem
require(["compose"], function(c) {
var b = c(function() {
}, {toString: function() {
return this.name
}});
var a = c.create(b)
a.name = 'a';
console.log(a.toString())
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment