Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1022583 // dm_onSnippetCreated

JavaX fragment (include)

// r : voidfunc(snippet ID), called in module queue
svoid dm_onSnippetCreated(final VF1<S> r) {
  dm_requireSnippetUpdatesModule();
  final DynModule m = dm_current_mandatory();
  dm_vmBus_onMessage('snippetUpdate, voidfunc(fL l) {
    switch to m.q();
    //print("In module: " + dm_current_mandatory());
    S uri = getString(l, 1);
    new Matches m;
    if (swic(uri, "/insert/", m)) {
      S snippetID = fsI(firstIntAsString(m.rest()));
      callF(r, snippetID);
    }
  });
}

Author comment

Began life as a copy of #1020647

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022583
Snippet name: dm_onSnippetCreated
Eternal ID of this version: #1022583/4
Text MD5: cde6c3301db11f0b5ac4de94549f41ef
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-05 12:01:14
Source code size: 497 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 217 / 264
Version history: 3 change(s)
Referenced in: [show references]