From 5c0453b01b37fcfb95f049d3425b54b4a79d9002 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 21 Feb 2012 18:03:36 -0800 Subject: fix bindings generator bug with closure compiler --- tools/bindings_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/bindings_generator.py') diff --git a/tools/bindings_generator.py b/tools/bindings_generator.py index 17df1231..4731abf3 100755 --- a/tools/bindings_generator.py +++ b/tools/bindings_generator.py @@ -676,7 +676,7 @@ def generate_class(generating_classname, classname, clazz): # TODO: deprecate ge print 'zz making return', classname, method['name'], method['returns'], return_value if method['returns'] in classes: # Generate a wrapper - calls += 'return wrapPointer(%s, Module.%s);' % (return_value, method['returns'].split('::')[-1]) + calls += '''return wrapPointer(%s, Module['%s']);''' % (return_value, method['returns'].split('::')[-1]) else: # Normal return calls += ('return ' if ret != 'void' else '') + return_value + ';' -- cgit v1.2.3-18-g5258