BipadTaranMahato / slideshow

Automatically exported from code.google.com/p/slideshow
0 stars 0 forks source link

Use document.id instead of $ #139

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In some cases there may be a conflict between mootools and other libraries
that steal/redefine the $ function. I notice you use the $ function in a
single point at line 65 of the slideshow class, it would be easy to change
it to document.id and have the library fully compatible even if another
library steals the $ function.

What version of the product are you using? On what operating system and
browser?

Latest on all browser.

Original issue reported on code.google.com by dfghi.w...@gmail.com on 28 May 2010 at 10:33

GoogleCodeExporter commented 9 years ago
Very nice tip and works great. Just replace the "$" in line 65 by
"document.getElementById".

Original comment by tsanc...@gmail.com on 4 Jun 2010 at 9:21

GoogleCodeExporter commented 9 years ago
Just to be clear, my suggestion was not to use the document.getElementById() 
function, but the MooTools document.id function, of which the $ is an alias (in 
MooTools).

Original comment by dfghi.w...@gmail.com on 6 Jul 2010 at 8:12

GoogleCodeExporter commented 9 years ago

Original comment by gregory....@gmail.com on 7 Jul 2010 at 10:10