// prevent collision with prototype, see http://forums.smartclient.com/showthread.php?t=853
window.isc_useSimpleNames = false;
//
// TODO : When XWIKI-3582 will be fixed we should better use the line below.
// var isomorphicDir = "$xwiki.getSkinFile('js/smartclient/')";
//
var isomorphicDir = "${request.getContextPath()}/resources/js/smartclient/";

@@ -203,20 +203,23 @@
 low.%0A// 
-var 
+window.
 isomorph
@@ -274,12 +274,15 @@
 %0A//%0A
-var 
+window.
 isom

Improve portlet integration * Define the isomorphicDir through the window object because it is used like this in the SmartClient code (this way we prevent it from being namespaced) (cherry picked from commit 22d9d7ec0c08d38ba53ed052d1a1afa03a1ebb8b)