Mercurial > repos > tabletprog
comparison cbackend.js @ 137:101fa04ee9e1
Fix calling methods on objects that are not self when self implements the method being called
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 08 Aug 2013 21:46:05 -0700 |
parents | f98790d8a53d |
children | 833624457b81 |
comparison
equal
deleted
inserted
replaced
136:4c7c3d3e0265 | 137:101fa04ee9e1 |
---|---|
235 obj += (i ? '->' : '') + 'parent'; | 235 obj += (i ? '->' : '') + 'parent'; |
236 } | 236 } |
237 args.splice(0, 0, ', ' + obj); | 237 args.splice(0, 0, ', ' + obj); |
238 start = 1; | 238 start = 1; |
239 } | 239 } |
240 } else if(!(args[0] instanceof symbol) || args[0].name != 'self') { | |
241 funinfo = null; | |
240 } | 242 } |
241 method = true; | 243 method = true; |
242 break; | 244 break; |
243 } | 245 } |
244 } | 246 } |