Page 1 of 1

Variables are lost from the scope of call methods in chains

Posted: Wed Mar 14, 2012 11:44 am
by Sorbing
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).

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

Posted: Sat Mar 17, 2012 4:04 pm
by eric_suen
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

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

Posted: Tue Mar 20, 2012 4:13 pm
by Sorbing
Everything works fine)). Thank you very much!