Skip to content

Instantly share code, notes, and snippets.

@dbaba
Last active October 7, 2015 09:27
Show Gist options
  • Save dbaba/3142814 to your computer and use it in GitHub Desktop.
Save dbaba/3142814 to your computer and use it in GitHub Desktop.
Model's command for Singleton Models from MOAT js API Document
var mySingletonTypeMapper =
session.newModelMapperStub('MySingletonType');
var obj = mySingletonTypeMapper.newModelStub(uid);
obj.doIt(session, 'param_data', {
success : function(reuslt) {
if (result.async) {
....
} else {
....
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment