Compare commits

...

1 Commits

Author SHA1 Message Date
Carson
4793ed3dda Add shiny:restyle event for listening to instances where session() updates stylesheet(s).
Will be useful for real-time theming integration in flexdashboard https://github.com/rstudio/flexdashboard/pull/308
2021-02-18 11:14:08 -06:00
5 changed files with 10 additions and 3 deletions

View File

@@ -4033,6 +4033,10 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
sheet.disabled = true;
if (browser.isIE) sheet.cssText = "";
$(sheet.ownerNode).remove();
$(document).trigger({
type: 'shiny:restyle',
oldSheet: sheet
});
};
$.map(links, function (link) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -174,6 +174,9 @@ function renderDependency(dep) {
sheet.disabled = true;
if (browser.isIE) sheet.cssText = "";
$(sheet.ownerNode).remove();
$(document).trigger({
type: 'shiny:restyle', oldSheet: sheet
});
}
}