Merge pull request #1573 from geraldalewis/1464_bound_static_methods

1464 bound static methods
This commit is contained in:
Jeremy Ashkenas
2011-08-04 21:00:46 -07:00
3 changed files with 12 additions and 2 deletions

View File

@@ -1065,7 +1065,7 @@
if (!assign.variable["this"]) {
assign.variable = new Value(new Literal(name), [new Access(base, 'proto')]);
}
if (func instanceof Code && func.bound) {
if (func instanceof Code && func.bound && !assign.variable["this"]) {
this.boundFuncs.push(base);
func.bound = false;
}