Project

General

Profile

Actions

Idea #4128

closed

[Workbench] [refactor] JavaScript refactoring

Added by Tim Pierce over 9 years ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Assigned To:
-
Category:
Workbench
Target version:
-
Start date:
Due date:
Story points:
-

Description

Some JavaScript maintenance we need in Workbench:

  • As much code as possible should be refactored out of views into their own assets.
  • Do not embed Ruby code in JavaScript. Ruby values should be passed only into variable assignments and function arguments, to minimize the risk of injection attacks.
  • Refactor JS code with an eye toward making unit testing possible.
Actions

Also available in: Atom PDF