Skip to content

Instantly share code, notes, and snippets.

@iamsonal
Last active July 6, 2017 14:05
Show Gist options
  • Save iamsonal/3f7fbbf87aad06231f7e2daeca884c32 to your computer and use it in GitHub Desktop.
Save iamsonal/3f7fbbf87aad06231f7e2daeca884c32 to your computer and use it in GitHub Desktop.
({
doForeground: function(cmp, event, helper) {
helper.echo(cmp, 'Foreground #1');
helper.echo(cmp, 'Foreground #2');
},
doBackground: function(cmp, event, helper) {
helper.echo(cmp, 'Background #1', function(action) {
action.setBackground();
});
helper.echo(cmp, 'Background #2', function(action) {
action.setBackground();
});
},
doStorable: function(cmp, event, helper) {
helper.echo(cmp, 'Storable #1', function(action) {
action.setStorable();
});
helper.echo(cmp, 'Storable #2', function(action) {
action.setStorable();
});
},
doAbortable: function(cmp, event, helper) {
helper.echo(cmp, 'Abortable #1', function(action) {
action.setAbortable();
});
helper.echo(cmp, 'Abortable #2', function(action) {
action.setAbortable();
});
},
doClear: function(cmp, event, helper) {
helper.clear(cmp);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment