Skip to content

Commit

Permalink
Fix for getAccessor to suppress error when the expression can not be …
Browse files Browse the repository at this point in the history
…obtained. Also It seems that we should publish 3.6.4.
  • Loading branch information
tonytomov committed Feb 8, 2010
1 parent ee1f5a8 commit 1ff9c99
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions js/grid.base.js
@@ -1,11 +1,11 @@
;(function ($) {
/*
* jqGrid 3.6.2 - jQuery Grid
* jqGrid 3.6.3 - jQuery Grid
* Copyright (c) 2008, Tony Tomov, tony@trirand.com
* Dual licensed under the MIT and GPL licenses
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
* Date: 2009-12-10
* Date: 2010-02-07
*/
$.jgrid = $.jgrid || {};
$.extend($.jgrid,{
Expand Down Expand Up @@ -457,13 +457,15 @@ $.fn.jqGrid = function( pin ) {
if ( typeof expr === 'string' ) {
prm = expr.split('.');
}
if(prm.length) {
ret = obj;
while (ret && prm.length) {
p = prm.shift();
ret = ret[p];
try {
if(prm.length) {
ret = obj;
while (ret && prm.length) {
p = prm.shift();
ret = ret[p];
}
}
}
} catch (e) {}
}
return ret;
},
Expand Down

0 comments on commit 1ff9c99

Please sign in to comment.