hoyois / clicktoplugin

Prevents plug-ins from loading automatically in Safari
http://hoyois.github.com/safariextensions/clicktoplugin/
228 stars 44 forks source link

disconnect MutationObservers #147

Closed zbirkenbuel closed 8 years ago

zbirkenbuel commented 8 years ago

Addresses the issue filed in https://github.com/hoyois/clicktoplugin/issues/146. Both explicitly disconnects the MutationObserver in the two places the _[elementID] record is deleted as well as guards against future errors in the observer callback itself.

Sublime Text automatically cleared trailing whitespaces.

hoyois commented 8 years ago

Thanks, much appreciated. I will merge this manually to avoid decimating my tabs...

zbirkenbuel commented 8 years ago

No problem, figured it was better to supply a patch than to just complain :). I really need a second editor with no auto format rules for writing upstream patches!