Project

General

Profile

Actions

Bug #17929

closed

Use prototype functions instead of own code, where it's possible in clickmenu.js

Added by Helmut Hummel over 16 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2007-12-17
Due date:
% Done:

0%

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

Description

In clickmenu.js the window object is extended by two functions window.getDimensions and window.getScrollOffset.

Both are already supported by prototype framwork with identical function names and very similar code, so no need for own functions here.

Solution: Use document.viewport.getDimensions() and document.viewport.getScrollOffsets() instead.

Comment:
This is a code cleanup, with low priority
(issue imported from #M6990)


Files

6990_cleanup.diff (1.98 KB) 6990_cleanup.diff Administrator Admin, 2007-12-17 13:59
Actions #1

Updated by Ingmar Schlecht over 16 years ago

Committed to trunk.

Actions

Also available in: Atom PDF