You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2017/06/01 06:37:19 UTC
svn commit: r1797140 - in
/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/script:
tobago-test.js tobago-testAll.js
Author: lofwyr
Date: Thu Jun 1 06:37:19 2017
New Revision: 1797140
URL: http://svn.apache.org/viewvc?rev=1797140&view=rev
Log:
fixing === vs == (in last commit)
Modified:
myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-test.js
myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-testAll.js
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-test.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-test.js?rev=1797140&r1=1797139&r2=1797140&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-test.js (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-test.js Thu Jun 1 06:37:19 2017
@@ -27,7 +27,7 @@ function jQueryFrame(expression) {
*/
function waitForAjax(waitingDone, executeWhenDone, maxWait) {
var startTime = new Date().getTime();
- maxWait = maxWait !== null ? maxWait : 20000;
+ maxWait = maxWait ? maxWait : 20000;
var stillWaiting = true;
var interval = setInterval(function() {
if (new Date().getTime() - startTime < maxWait && stillWaiting) {
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-testAll.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-testAll.js?rev=1797140&r1=1797139&r2=1797140&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-testAll.js (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/script/tobago-testAll.js Thu Jun 1 06:37:19 2017
@@ -51,11 +51,9 @@ function waitForTest(waitingDone, execut
}
function runNextFrame($nextFrame) {
- if ($nextFrame.length > 0) {
- var url = $nextFrame.attr("name");
- if (url !== undefined) {
- $nextFrame.removeAttr("name");
- $nextFrame.attr("src", url);
- }
+ var url = $nextFrame.attr("name");
+ if (url) {
+ $nextFrame.removeAttr("name");
+ $nextFrame.attr("src", url);
}
}