diff pyink/domview.py @ 1275:776b024ae8f9

Fix the buggy implementation of reset() - old implementation is too buggy to make a lot wrong assumption.
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 12 Jan 2011 21:41:26 +0800
parents a4d3838264dd
children 0442ae9c2ac2
line wrap: on
line diff
--- a/pyink/domview.py	Wed Jan 12 21:20:06 2011 +0800
+++ b/pyink/domview.py	Wed Jan 12 21:41:26 2011 +0800
@@ -351,7 +351,8 @@
 	pass
 
     def reset(self):
-        self.handle_doc_root( self._doc, self._root)
+        self._layers = []
+        self._parse_all_layers()
 	pass
    
     def dumpattr(self, n):