Issue Bug Closed

#24242common.js resets TYPO3 namespace

Peter Kuehn 11/30/10, 10:22 updated 10/02/18, 12:21

Description

If some JavaScript already registered a class in the global namespace TYPO3. prior to loading common.js in the backend.php (which is the case if added using $GLOBALS[‘TBE_TEMPLATE’]->getPageRenderer()) the class gets overwritten by common.js with

var TYPO3 = {
…
};

Id suggest to do it that way:

var TYPO3 = TYPO3 ? TYPO3 : {};
var TYPO3 = Ext.apply(TYPO3,{
…
});

see diff attached
gRTz pekue

(issue imported from #M16614)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.