Commit a7b61e3c authored by catch's avatar catch

Issue #2700495 by ronaldtebrake, nod_: Method removing expired...

Issue #2700495 by ronaldtebrake, nod_: Method removing expired drupalSettings.ajax tries to remove settings when there is no ajax defined
parent a97f7b7e
......@@ -1210,7 +1210,7 @@
// Ajax behavior.
if (instance.selector) {
var selector = instance.selector.replace('#', '');
if (selector in ajaxSettings) {
if (ajaxSettings && selector in ajaxSettings) {
delete ajaxSettings[selector];
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment