Visual Studio 2008 crashes when opening a JavaScript file?

Visual Studio Team 2008 crashes without error messages whenever I try to open a specific JavaScript file. I found this social.msdn stream , but installing the KB958502 hotfix did not fix the problem.

Has anyone else experienced this and solved it?

+5
source share
2 answers

You have installed PowerCommands for Visual Studio 2008 ? If so, check this post for help:

FIX: PowerCommands for Visual Studio 2008 IDE crashes

, JavaScript.

+1

"", , /.

, . MochiKit , .

, common.js, :

if(typeof(DomEvent) == "undefined") {
   DomEvent = {};
   var domEventNames = [
      "onabort", "onblur", "onchange", "onclick", "ondblclick", "onerror", "onfocus", 
      "onkeydown", "onkeypress", "onkeyup", "onload", "onmousedown", "onmousemove", 
      "onmouseout", "onmouseover", "onmouseup", "onreset", "onresize", "onscroll", 
      "onselect", "onsubmit", "onunload"
   ];
   // forEach is a MochiKit function; functionality should be obvious
   forEach(domEventNames, function(eventName) {
      DomEvent[eventName] = eventName;
   });
}

, , DomEvent, , , , ( ).

, Intellisense API , :

/// <reference path="common.js"/>

Visual Studio "" API JavaScript Intellisense , .

, , , common.js, , , Visual Studio . , JavaScript , Visual Studio , XML Intellisense. , .

, - .

+1

All Articles