<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Possible bug in grid.base.js line 337</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/possible-bug-in-gridbasejs-line-337</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/discussion/possible-bug-in-gridbasejs-line-337/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Possible bug in grid.base.js line 337</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/possible-bug-in-gridbasejs-line-337#p13343</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/possible-bug-in-gridbasejs-line-337#p13343</guid>
        	        	<description><![CDATA[<p>Steve,</p>
<p>Merry Christmas!</p>
<p>No there is no error here.</p>
<p>The full code say:</p>
<p>The original gridComplete should obtain the saved one before some operations.</p>
<p>The</p>
<p>if(p.gridComplete = complete) {</p>
<p>complete();</p>
<p>}</p>
<p>in the assigment the value can be either null or function if the value is null - nothing will happen else we restore the original and exectute the event.</p>
<p>Not sure if I explain it good.</p>
<p>Something similar can be see in grid.common.js</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7940' value='Select Code' data-codeid='sfcode7940' /></p>
<div class='sfcode' id='sfcode7940'>
<p>function findPos(obj) {<br />&#160;&#160;&#160; var curleft = curtop = 0;<br />&#160;&#160;&#160; if (obj.offsetParent) {<br />&#160;&#160;&#160; &#160;&#160;&#160; do {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; curleft += obj.offsetLeft;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; curtop += obj.offsetTop; <br />&#160;&#160;&#160; &#160;&#160;&#160; } while (obj = obj.offsetParent);<br />&#160;&#160;&#160; &#160;&#160;&#160; //do not change obj == obj.offsetParent <br />&#160;&#160;&#160; }<br />&#160;&#160;&#160; return [curleft,curtop];<br />}</p>
</div>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 26 Dec 2009 13:17:28 +0200</pubDate>
        </item>
        <item>
        	<title>StevenBlack on Possible bug in grid.base.js line 337</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/possible-bug-in-gridbasejs-line-337#p13301</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/possible-bug-in-gridbasejs-line-337#p13301</guid>
        	        	<description><![CDATA[<p>Hi Tony!&#160; Happy holidays!</p>
<p>In the latest grid.base.js in GitHub, line 337 -- is it your intention to make an assignment in an if() condition?</p>
<p>337&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; if (p.gridComplete = complete) {</p>
<p>I&#39;m supposing you mean</p>
<p>337&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; if (p.gridComplete == complete) {</p>
<p>or</p>
<p>337&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; if (p.gridComplete === complete) {</p>
</p>
<p>**--**&#160; Steve</p>
]]></description>
        	        	<pubDate>Fri, 25 Dec 2009 05:03:05 +0200</pubDate>
        </item>
</channel>
</rss>