Fixed none removed hints on pages with AJAX (#61).
authorDaniel Carl <danielcarl@gmx.de>
Thu, 9 Jan 2014 23:03:16 +0000 (00:03 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Thu, 9 Jan 2014 23:03:16 +0000 (00:03 +0100)
commit8570ead256e0e0d825e3c78c5db52d2b00c212e6
tree0760c77bd06303a60c1099321e57749bdcd1c2e5
parent065768ec6baa59cb0699bc64129d4a4687f556ba
Fixed none removed hints on pages with AJAX (#61).

The load of page parts with AJAX triggered the injection of the VbHint object
into the page. This overlayed the current used VbHint object so that the
clear() call (started out of hints.c) was run on the new and empty VbHint
object, that does not know anything of already active hints.

This patch moves the initializing of hints to "window-object-cleared" signal.
This is only emmited, if a new window object is created, so thatwe do not
overlay an already defined object.

According to the surf browser also the user script loading was moved to the
"window-object-clear" signal handler, else this would be called multiple times
on each page load or if only parts of the page are updated via AJAX.
src/main.c