Skip to content

Instantly share code, notes, and snippets.

@dbaba
Last active October 7, 2015 09:27
Show Gist options
  • Save dbaba/3142836 to your computer and use it in GitHub Desktop.
Save dbaba/3142836 to your computer and use it in GitHub Desktop.
Model's command from MOAT js API Document
// Gets a UID of an object to be fetched.
var uid = 'an-identifier-for-object';
var myArrayTypeMapper =
session.newModelMapperStub('MyArrayType');
var obj = myArrayTypeMapper.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