My favorites | Sign in
Project Home Downloads
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 63: Doesn't work with prototype library in jQuery.noConflict() mode.
1 person starred this issue and may be notified of changes. Back to list
Status:  Verified
Owner:  moo...@wwwendt.de
Closed:  Jan 2009


 
Reported by wayne.tr...@gmail.com, Dec 11, 2008
What steps will reproduce the problem?
1. include lib: 
<script language="javascript" type="text/javascript"
src="prototype.js"></script>
<script language="javascript" type="text/javascript"
src="jquery-1.2.6.js"></script>
<script>
var $j = jQuery.noConflict();
</script>
<link type="text/css" rel="stylesheet" href="skin/ui.dynatree.css" />
<script language="javascript" type="text/javascript"
src="jquery.dynatree.js"></script>
....

2. Click a tree node will cause runtime error as below:

$(this.tree.tnFocused.span).addClass is not a function
onFocus()(Object originalEvent=Event focus type=focus)jquery.d...natree.js
(line 535)
fnFocusHandler(Object originalEvent=Event focus
type=focus)jquery.d...natree.js (line 875)
[Break on this error]
$(this.tree.tnFocused.span).addClass(this.tree.options.classnames.focused);

==========================================================================

$(event.target).hasClass is not a function
onClick()(Object originalEvent=Event click which=1
view=window)jquery.d...natree.js (line 421)
fnClick(Object originalEvent=Event click which=1
view=window)jquery.d...natree.js (line 846)
handle()(Object originalEvent=Event click which=1
view=window)jquery-1.2.6.js (line 2076)
(?)()()jquery-1.2.6.js (line 1858)
[Break on this error] if(
$(event.target).hasClass(this.tree.options.classnames.expander) ) {

==========================================================================

$(this.tree.tnFocused.span).removeClass is not a function
onFocus()(Object originalEvent=Event blur type=blur)jquery.d...natree.js
(line 524)
fnFocusHandler(Object originalEvent=Event blur
type=blur)jquery.d...natree.js (line 875)
[Break on this error]
$(this.tree.tnFocused.span).removeCl...s(this.tree.options.classnames.focused);



What is the expected output? What do you see instead?


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

IE 7.0 or FF 3.0

Please provide any additional information below.


Dec 11, 2008
Project Member #1 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Accepted
Labels: Milestone-Release0.4
Dec 14, 2008
#2 wayne.tr...@gmail.com
I'm using this version of dynatree.

$Version: 0.3.0$
$Revision: 97, 2008-12-07 18:30:35$

I tried to find the easiest way to fix this problem might be:
Range from line 1 to line 826, replace $ with jQuery,
which means any $ outside of the (function($) { ... })(jQuery) should be in form as
jQuery.

Hope this will be helpful.

Jan 14, 2009
Project Member #3 moo...@wwwendt.de
Should be fixed with 0.4 alpha.
Still needs to be verified (feedback would be nice :-)
Jan 14, 2009
Project Member #4 moo...@wwwendt.de
(No comment was entered for this change.)
Owner: moo...@wwWendt.de
Jan 17, 2009
Project Member #5 moo...@wwwendt.de
(No comment was entered for this change.)
Status: Verified

Powered by Google Project Hosting