Goldengate icon indicating copy to clipboard operation
Goldengate copied to clipboard

Nicer syntax for calling methods from JavaScript

Open radex opened this issue 11 years ago • 0 comments

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.

radex avatar Nov 18 '14 22:11 radex