[richfaces-svn-commits] JBoss Rich Faces SVN: r6141 - branches/3.1.x/framework/impl/src/main/javascript/jquery.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Mon Feb 18 10:08:59 EST 2008


Author: pyaschenko
Date: 2008-02-18 10:08:58 -0500 (Mon, 18 Feb 2008)
New Revision: 6141

Modified:
   branches/3.1.x/framework/impl/src/main/javascript/jquery/patches.js
Log:
RF-2224

Modified: branches/3.1.x/framework/impl/src/main/javascript/jquery/patches.js
===================================================================
--- branches/3.1.x/framework/impl/src/main/javascript/jquery/patches.js	2008-02-18 15:05:04 UTC (rev 6140)
+++ branches/3.1.x/framework/impl/src/main/javascript/jquery/patches.js	2008-02-18 15:08:58 UTC (rev 6141)
@@ -1,4 +1,10 @@
-if (jQuery(jQuery) != jQuery) {
+if (!window.RichFaces) {
+	window.RichFaces = {};
+}
+
+// calling jQuery(jQuery) makes memory leaks
+//if (jQuery(jQuery) != jQuery) {
+if (!window.RichFaces.jQueryWrapper) {
 	var oldJQuery = jQuery;
 	jQuery = function() {
 		if (arguments[0] == arguments.callee) {
@@ -15,4 +21,5 @@
 			}
 		});
 	}
-};
+	window.RichFaces.jQueryWrapper = true;
+};
\ No newline at end of file




More information about the richfaces-svn-commits mailing list