Mercurial > repos > tabletprog
comparison cbackend.js @ 241:c50f77de41d1
Small fix to call to method implemented on current object check
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 05 Jan 2014 20:54:22 -0800 |
parents | 53cd9c3bcf96 |
children | 2557ce4e671f |
comparison
equal
deleted
inserted
replaced
240:dc5f487247ee | 241:c50f77de41d1 |
---|---|
228 switch(funinfo.type) | 228 switch(funinfo.type) |
229 { | 229 { |
230 case 'self': | 230 case 'self': |
231 case 'parent': | 231 case 'parent': |
232 var defargs = funinfo.def.args.length; | 232 var defargs = funinfo.def.args.length; |
233 if (!defargs || funinfo.def.args[0].name != 'self') { | 233 if (!defargs || funinfo.def.args[0].cleanName() != 'self') { |
234 defargs ++ | 234 defargs ++ |
235 } | 235 } |
236 if (args.length < defargs) { | 236 if (args.length < defargs) { |
237 if (funinfo.type == 'self') { | 237 if (funinfo.type == 'self') { |
238 args.splice(0, 0, new symbol('self', this.symbols)); | 238 args.splice(0, 0, new symbol('self', this.symbols)); |