Goldengate
Goldengate copied to clipboard
Nicer syntax for calling methods from JavaScript
Instead of:
Goldengate.dispatch('Foo', 'bar', [args])
I'd like:
Goldengate.Foo.bar(args)
I don't think you can catch calls of undefined methods like that, so instead we have to pass the list of routes across the bridge at start — before any calls — and create those "classes" and methods.