Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !13801

UMD code style

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/hnrch02/fix-umd into master Jun 12, 2014
  • Overview 0
  • Commits 3
  • Pipelines 0
  • Changes 14

Created by: hnrch02

This includes three rather controversial things: 1.

  1. Renames the argument of the UMD function to factory from o_o
  2. Subsequently re-enables requireCamelCaseOrUpperCaseIdentifiers for JSCS
    1. Re-enables the strict rule of JSHint
    2. Adds /* jshint strict: false */ to the function (as suggested by @XhmikosR)
  3. Replaces === in favor of == in the UMD function to comply with the currently used comparator with typeof in the rest of the codebase. (Ref)

This is why I have split this into two easy-to-revert commits, in case the hopefully vivid discussion following this PR concludes that something should be removed.

/cc @fat @cvrebert

(Remember, make love, not war <3)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/hnrch02/fix-umd