0

I'm currently using two libraries (prototype and jQuery), thus I've implemented the jQuery noConflict method and set it equal to $j:

var $j = jQuery.noConflict();

Problem is, now the jquery-1.3.2-vsdoc.js doesn't recognize my $j as a valid entry argument.

Is there a way to change this? I've played around with the jquery-1.3.2-vsdoc.js and had no results.

Thanks!!

farina
  • 3,486
  • 6
  • 32
  • 44

2 Answers2

2

On line 51 of jquery-1.3.2-vsdoc.js, replace

jQuery = window.jQuery = window.$ = function(selector, context) {

with

jQuery = window.jQuery = window.$ = window.$j = function(selector, context) {

you'll be lying a little bit to Studio, since the source of the -vsdoc no longer matches the executing source, but it should be a safe hack.

Dan Davies Brackett
  • 9,811
  • 2
  • 32
  • 54
0

Have you tried using an identifier that doesn't start with a dollar sign? I know that's the convention, but it might be mucking with your intellisense. Just a thought. Good luck!

Community
  • 1
  • 1
Mike
  • 4,542
  • 1
  • 26
  • 29
  • Good question, but it didn't work :(. Whatever I do I believe I'm going to have to modify the vsdoc file to include it...I just can't figure it out :(. – farina Jun 26 '09 at 22:47