• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

The more javascript we use, the more it becomes important to have namespaces to avoid function name clashes.

I propose to put all functions in twiki.js inside namespace TWiki. This will effect javascript calls in pattern skin, and perhaps also other skins and plugins:

to name a few.

AC


I have found these files that include twiki.js:
  • templates/twiki.tmpl:20
  • twikiplugins/ClassicSkin/templates/twiki.classic.tmpl:18
  • twikiplugins/PatternSkin/templates/javascript.pattern.tmpl:11
  • twikiplugins/QuickMenuSkin/templates/twiki.quickmenu.tmpl:17
  • twikiplugins/TwistyPlugin/lib/TWiki/Plugins/TwistyPlugin.pm:81

So that would be:

AC
This has become outdated. See Item3064 (javascript refactoring).

ItemTemplate
Summary Refactor twiki.js to put functions in TWiki namespace
ReportedBy TWiki:Main.ArthurClemens
Codebase

SVN Range Wed, 12 Jul 2006 build 11001
AppliesTo Engine
Component

Priority Enhancement
CurrentState No Action Required
WaitingFor

Checkins

TargetRelease n/a
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r4 - 2006-11-30 - ArthurClemens
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback