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
  • Issues
  • #15638
Closed
Open
Issue created Jan 22, 2015 by Administrator@rootContributor

Browserify pollution global namespace

Created by: jesusprubio

This works for me, but I would like not to pollution the window object (adding there jQuery). Is there any "official" way of passing a JQuery object instead of using the global one? BTW the README doesn't reflect anything about browserify or npm, so it's a bit confusing to have to look for responses in the issues and in the code. I'm going to add some notes there, but I need to clear this issue before.

var jquery = require('jquery'); window.jQuery = $; require('bootstrap');

Assignee
Assign to
Time tracking