Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335590 - [client] jslintPlugin.js calls document.addEventListener
Summary: [client] jslintPlugin.js calls document.addEventListener
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-27 11:42 EST by Felipe Heidrich CLA
Modified: 2011-09-01 11:41 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felipe Heidrich CLA 2011-01-27 11:42:47 EST
Trying to open a file in IE8 fails with error.
jslintPlugin.js has this code:
document.addEventListener("DOMContentLoaded", function() {
	var pluginData = {
		services : [{
			id : "JSLintEditorSyntaxChecker", 
			serviceType : {
				id: "IEditorSyntaxChecker", 
				interfaces : ["checkSyntax"]
			},
			properties: {}
		}]
	};
	var serviceProvider = new eclipse.JSLintServiceProvider();
	var jslintPlugin = new eclipse.Plugin(pluginData, serviceProvider);
	jslintPlugin.start();
}, false);

The problem is that in IE8 document does not have a addEventListener method.
Comment 1 John Arthorne CLA 2011-01-27 11:59:49 EST
(In reply to comment #0)
> Trying to open a file in IE8 fails with error.

For me the file opens fine. If I open the IE dev tools I can see that error in the console, but doesn't seem to affect ability to open/edit files for me.
Comment 2 Mark Macdonald CLA 2011-02-02 17:28:31 EST
This was fixed a few days ago