Skip to content

Commit

Permalink
Remove references to details_shim
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgros committed Oct 25, 2024
1 parent 5b0ddf9 commit e825073
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ public interface SynapseJSNIUtils {

public void highlightCodeBlocks();

void loadSummaryDetailsShim();

public void loadTableSorters();

public String getBaseFileHandleUrl();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,6 @@ public void loadSummaryDetailsShim() {
_loadSummaryDetailsShim();
}

public static native void _loadSummaryDetailsShim() /*-{
try {
$wnd.jQuery('summary').each(function(i, e) {
$wnd.details_shim(e)
});
} catch (err) {
console.error(err);
}
}-*/;

@Override
public void loadTableSorters() {
_tablesorter();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ public void loadHtml(String uniqueSuffix, String result) {
if (result != null && !result.isEmpty()) {
view.setEmptyVisible(false);
view.setMarkdown(result);
synapseJSNIUtils.loadSummaryDetailsShim();
loadMath(uniqueSuffix);
loadWidgets(wikiKey, wikiVersionInView, uniqueSuffix);
loadTableSorters();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,6 @@ public void testConfigureSuccess() {
// verify tablesorter applied
verify(mockSynapseJSNIUtils).loadTableSorters();

// verify summary/details tag shim run
verify(mockSynapseJSNIUtils).loadSummaryDetailsShim();

// verify loadMath
verify(mockSynapseJSNIUtils).processMath(mockElementWrapper.getElement());

Expand Down

0 comments on commit e825073

Please sign in to comment.