Skip to content

Commit 18f4196

Browse files
empiricompanyfballiano
authored andcommitted
Fix prototype errors in chrome
1 parent 750a10c commit 18f4196

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/prototype/prototype.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,9 @@ Ajax.PeriodicalUpdater = Class.create(Ajax.Base, {
21732173

21742174
function remove(element) {
21752175
element = $(element);
2176-
element.parentNode.removeChild(element);
2176+
if (element.parentNode) {
2177+
element.parentNode.removeChild(element);
2178+
}
21772179
return element;
21782180
}
21792181

0 commit comments

Comments
 (0)