This may simply be an error due to my lack of experience with jQuery in which case hopefully the answer will be simple.
I’m looking at integrating the jQuery spectrum plugin (http://bgrins.github.com/spectrum/) as demonstrated in the HTML Interaction example.
Here is the HEAD of my HTML page:
And later on in the page is the HTML element:
<span =“Apple-tab-span” style=“font-family: Arial, Helvetica, sans-serif; white-space: pre;”>
The spectrum component is not created correctly. If I inspect the line $(“#colourPicker”).spectrum({ as it is being executed in my browser I see that it is not jQuery.js that handles the call to spectrum(). Instead go.js handles the call to spectrum on line 775:
P.make=Lj=function(a,b){var c=m,d=m;if(“function”===typeof a)d=a;else if(“string”===typeof a){var e=Mj.ca(a);“function”===typeof e?c=e():d=ea[a]}c===m&&(d===f&&(c=window.$,c!==f&&c.noop!==f&&v.g(“GraphObject.make failed to complete. Is it conflicting with another $ var? (such as jQuery)”),v.g(“GraphObject.make failed to complete, it may be conflicting with another var.”)),(d===m||!d.constructor)&&v.g("GraphObject.make requires a class function or class name, not: "+a),c=new d);e=1;c instanceof A&&
If I understand correctly (and I am not a Javascript expert) it looks like function Lj is capturing the call to spectrum(). I know it can work because I’ve seen the example in the HTML interaction, yet I have had trouble getting it to work myself.
Can anyone offer any input?