Index: typo3/js/common.js =================================================================== --- typo3/js/common.js (Revision 9931) +++ typo3/js/common.js (Arbeitskopie) @@ -29,7 +29,7 @@ Ajax.Responders.register({ onCreate: function(request, transport) { - // if the TYPO3 AJAX backend is used, + // if the TYPO3 AJAX backend is used, // the onSuccess & onComplete callbacks are hooked if (request.url.indexOf("ajax.php") === -1) { return; @@ -77,8 +77,7 @@ }; // common storage and global object, could later hold more information about the current user etc. -var TYPO3 = TYPO3 || {}; -TYPO3 = Ext.apply(TYPO3, { +var TYPO3 = { // store instances that only should be running once _instances: {}, getInstance: function(className) { @@ -88,9 +87,9 @@ TYPO3._instances[className] = instance; return instance; }, - + helpers: { - // creates an array by splitting a string into parts, taking a delimiter + // creates an array by splitting a string into parts, taking a delimiter split: function(str, delim) { var res = []; while (str.indexOf(delim) > 0) { @@ -100,4 +99,4 @@ return res; } } -}); +};