Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Can you use a page's existing jQuery in steal?

$
0
0
What documentation were you looking at? It recently got quite a bit of love and is much more clear and up to date. You can see that here:


filemanager in that example is a module. The intro to the section gives it away: "Maps moduleIds to other moduleIds when stolen in a particular location". The docs go on to show you that stealing jquery in filemanager/filemanager.js actually steals the 1.8.3 version.

On the first page of the docs there are a few links to what ids are: moduleIdReferencemoduleId

map maps ids to other ids
paths map ids to file paths

Now on to your issue...

The solution Justin mentioned does work. Here's what you do.

Create a file named noquery.js somewhere in your folder structure that is empty. Then add this to your paths in stealconfig.js:
  1. "jquery": "path/to/noquery.js"
Where the path is relative to where stealconfig.js is located.

Viewing all articles
Browse latest Browse all 3491

Trending Articles