Re: Pengine url
Anne Ogborn <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
I'd say do
var pengine = new Pengine({
oncreate: handleCreate,
onsuccess: handleSuccess,
onfailure: handleFailure,
onstop, handleStop,
server: 'http://mygame.org',
src: ...
});
while the handlers struct is useful, it's one more bit of ceremony for the common case.
And I'm aggressive about making sure the common case is easy. People doing complex stuff
can live with complexity.