code_junkie

VS JavaScript intellisense with paramaters

Nov 13th, 2011
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. SomeObjectType = function() {
  2. }
  3.  
  4. SomeObjectType.prototype = {
  5. field1: null,
  6. field2: null
  7. }
  8.  
  9. SomeOtherObject = function() {
  10. }
  11.  
  12. SomeOtherObject.prototype =
  13. {
  14. doSomething: function(val) {
  15. /// <param name="val" type="SomeObjectType"></param>
  16. var val2 = new SomeObjectType();
  17. //val2. shows intellisense correctly
  18. //val. does NOT
  19.  
  20.  
  21. }
  22. }
Add Comment
Please, Sign In to add comment