ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: Feng Dihai on February 03, 2017, 09:02:23 am
-
We have patched pqgrid.dev.js to improve user experience. According to the commercial license, it is required to be minimized to before releasing to end users. We plan to use Uglifyjs2 to do the job, but encountering several warnings when compressing, such as:
- side effects in initialization of unused variable
- non-strict equality against boolean: == false or true
- drop unreacheable codes/unused variables
How pqgrid.dev.min.js being minimized (Google Closure compiler/YUI/any others)? Does warnings above corrupt PQ Grid?
Thank you.
-
It's minimized with Google closure. Warnings don't corrupt.
The recommended way to patch is to write separate files to override the specific methods of pqGrid. For example if you wish to override some method "method1" of pqGrid, then use a separate file to write
(function($){
$.paramquery.pqGrid.prototype.method1 = function( params){
//new functionality here.
};
})(jQuery);
BTW which methods/functionality have you patched? You may post them ( the outline ) in "suggest new features" board, they might be included in pqgrid core if found useful.
-
I plan to submit our patches later.
Thank you for your wonderful work.