// 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/";

// 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.
// window.isomorphicDir = "$xwiki.getSkinFile('js/smartclient/')";
//
window.isomorphicDir = "${request.getContextPath()}/resources/js/smartclient/";

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)