Skip to content

Commit

Permalink
fixing possible usage of null.toString() or undefined.toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegKi committed Nov 6, 2013
1 parent d2ee0f3 commit 3e5f92d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/grid.base.js
Expand Up @@ -679,7 +679,7 @@ $.extend($.jgrid,{
if(_useProperties){
self._append(self._getStr('jQuery.jgrid.getAccessor(this,\''+f+'\')')+'.substr(0,'+length+') == '+self._getStr('"'+self._toStr(v)+'"'));
}else{
length=_trim?$.trim(v.toString()).length:v.toString().length;
if (v!=null) { length=_trim?$.trim(v.toString()).length:v.toString().length; }
self._append(self._getStr('this')+'.substr(0,'+length+') == '+self._getStr('"'+self._toStr(f)+'"'));
}
self._setCommand(self.startsWith,f);
Expand Down

0 comments on commit 3e5f92d

Please sign in to comment.