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

15
LINES

< > BotCompany Repo | #1022583 // dm_onSnippetCreated

JavaX fragment (include)

1  
// r : voidfunc(snippet ID), called in module queue
2  
svoid dm_onSnippetCreated(final VF1<S> r) {
3  
  dm_requireSnippetUpdatesModule();
4  
  final DynModule m = dm_current_mandatory();
5  
  dm_vmBus_onMessage('snippetUpdate, voidfunc(fL l) {
6  
    switch to m.q();
7  
    //print("In module: " + dm_current_mandatory());
8  
    S uri = getString(l, 1);
9  
    new Matches m;
10  
    if (swic(uri, "/insert/", m)) {
11  
      S snippetID = fsI(firstIntAsString(m.rest()));
12  
      callF(r, snippetID);
13  
    }
14  
  });
15  
}

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: 309 / 349
Version history: 3 change(s)
Referenced in: [show references]