Hi Jed,

On 2012-05-31 09:44 , jedavis13 wrote:
> Hello, I am porting Exhibit 3 to an existing Drupal app and have some
> questions as to the choice of using '$' instead of jQuery in the
> bundled scripts. In order to get exhibit to work I had to manually
> edit each script and replace $ with jQuery. There must be another way
> around this yes? I tried writing a jQuery no-conflict script, but that
> was not working.
> 
> Any suggestions would be greatly appreciated. Currently it's working,
> however I am not happy with having to modify the core. Here is a link
> to the page if this helps, 
> http://kang.ccnmtl.columbia.edu/sb/jed/drupal7_lowernysphtc/dgcore/col-matrix

Thanks for pointing this out.  Exhibit has (in my usage) generally been
the only thing going on in a page, and any other code would be concerned
with modifying its behavior.  Clearly that isn't the best assumption to
be making.

I used $ because it made typing easier and lines shorter (nothing deep
there).  I'm familiar with the use of closures to $ within a restricted
scope, as most jQuery plugins do, but with our code base spread out over
a lot of files, I am loathe to go down that road.  I suppose we could
just make the switch to use "jQuery" instead, though if you know of any
other way we can have our cake and eat it too - the simplicity of $
without causing conflicts - I'd be interested to hear it.  I'll see what
else I can find on the topic.

If nothing else, we could make sure the compressed version of Exhibit
substitutes all $ usage for jQuery.

> Thanks,
> 
> Jed
> 

-- 
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to simile-widgets@googlegroups.com.
To unsubscribe from this group, send email to 
simile-widgets+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en.

Reply via email to