Project

General

Profile

Actions

Bug #24242

closed

common.js resets TYPO3 namespace

Added by Peter Kuehn almost 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-11-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Files

ext_apply_typo3.diff (536 Bytes) ext_apply_typo3.diff Administrator Admin, 2010-11-30 10:22
0016614_v2.diff (532 Bytes) 0016614_v2.diff Administrator Admin, 2010-11-30 10:39

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #24405: 'Ext' is undefined, Line: 81, js/common.jsRejectedBenni Mack2010-12-23

Actions
Actions #1

Updated by Peter Kuehn almost 14 years ago

pls use 0016614_v2.diff (removed a duplicate var from the first try)

Actions #2

Updated by Steffen Kamper almost 14 years ago

Committed to svn
4_3 rev 9683
4_4 rev 9684
trunk rev 9685

Actions #3

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF