Permalink
Browse files

Don't let ``add_call`` pile-up new js resources.

  • Loading branch information...
ralphbean committed Jan 11, 2013
1 parent 9547108 commit f1d698c5500bb14799845c332e4fd81906e21949
Showing with 1 addition and 0 deletions.
  1. +1 −0 tw2/core/widgets.py
@@ -418,6 +418,7 @@ def display(self, cls, value=None, displays_on=None, **kw):
self.prepare()
if self._js_calls:
self.safe_modify('resources')
#avoids circular reference
import resources as rs
for item in self._js_calls:

0 comments on commit f1d698c

Please sign in to comment.