Variables are lost from the scope of call methods in chains

Bug Reports and Fixes
Post Reply
Sorbing
Posts: 27
Joined: Wed Oct 19, 2011 2:52 pm
Location: Ukraine, Kyiv
Contact:

Variables are lost from the scope of call methods in chains

Post by Sorbing » Wed Mar 14, 2012 11:44 am

Description bug:

Code: Select all

$(document).ready(function() {
	$('#id').click(function(e) {
		var el = $(this);
		e    // Available for code completion variables "e", "el", other
		$(). // Good, completion works
		el.  // Good, completion works
	});
	
	$('#id').click(function(e) {
		var el = $(this);
		e  // Variables "e" and "el" NOT available for code completion!
		el.  // Completion NOT works!
	})
	.dblclick(function(evt) {}); // reason is any functions when you call in the chain!
});
Examples.
It's works:
Image
It's BUG:
Image

Environment: Kubuntu 11.10 (x64), Eclipse 3.7.1 + PDT, Spket 1.6.18(22).

eric_suen
Site Admin
Posts: 678
Joined: Wed Sep 28, 2005 7:00 am
Contact:

Re: Variables are lost from the scope of call methods in cha

Post by eric_suen » Sat Mar 17, 2012 4:04 pm

thanks for reporting the bug, I uploaded a quick fix, please download http://www.agpad.com/downloads/com.spket.js_1.6.22.jar and try again

Sorbing
Posts: 27
Joined: Wed Oct 19, 2011 2:52 pm
Location: Ukraine, Kyiv
Contact:

Re: Variables are lost from the scope of call methods in cha

Post by Sorbing » Tue Mar 20, 2012 4:13 pm

Everything works fine)). Thank you very much!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest