Just started working with jqGrid, and so far, I really like it…
… at least, what it does… Im a little concerned with how it does it 
Basically, Im rather concerned about the namespace pollution. It adds dozens (hundreds?) of names to the $ namespace, and lots more to the $.fn namespace. It even adds a number to the window object.
Many of these names are very ordinary – $.stringToDoc, $.parse, $.stripHtml just to list a few. I'm fairly new to jQuery, so I've not looked at too many other plugins, but if they all do the same, then using them together is likely to be a nightmare.
I realize that the api is now “out there” so you cant just drop it – but I'd like to suggest a possible change to move to a cleaner setup.
If, instead of “$.fn.getGridParam = function…; $.fn.setGridParam = function…” etc, you wrote it as:
var methods = {
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top