##// END OF EJS Templates
s/this/self
Jonathan Frederic -
Show More
@@ -157,11 +157,11 b' class EventfulList(list):'
157 del_callback: [callback = None]
157 del_callback: [callback = None]
158 reverse_callback: [callback = None]
158 reverse_callback: [callback = None]
159 sort_callback: [callback = None]"""
159 sort_callback: [callback = None]"""
160 this.on_insert(insert_callback)
160 self.on_insert(insert_callback)
161 this.on_set(set_callback)
161 self.on_set(set_callback)
162 this.on_del(del_callback)
162 self.on_del(del_callback)
163 this.on_reverse(reverse_callback)
163 self.on_reverse(reverse_callback)
164 this.on_sort(sort_callback)
164 self.on_sort(sort_callback)
165
165
166 def on_insert(self, callback):
166 def on_insert(self, callback):
167 """Register a callback for when an item is inserted into the list.
167 """Register a callback for when an item is inserted into the list.
General Comments 0
You need to be logged in to leave comments. Login now