You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print gridBar.get_config() will contain {'editurl': '/foo/edit'} even it's not concerned with.
So extra_config introduced some kind of persistence across of all objects while, IMHO, it was designed to serve each object separately.
This can be solved by making it an instance variable:
class JqGrid(object):
def init(self):
self.extra_config = {}
The text was updated successfully, but these errors were encountered:
Hi all,
extra_config is a class variable, and this can lead to a bug in the case of a page containing two jqGrid objects:
gridFoo = jqGrid()
gridFoo.extra_config['editurl'] = '/foo/edit'
gridBar = jqGrid()
print gridBar.get_config() will contain {'editurl': '/foo/edit'} even it's not concerned with.
So extra_config introduced some kind of persistence across of all objects while, IMHO, it was designed to serve each object separately.
This can be solved by making it an instance variable:
class JqGrid(object):
def init(self):
self.extra_config = {}
The text was updated successfully, but these errors were encountered: