This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 229884 - Completing property names of $.ajax() corrupt the source
Summary: Completing property names of $.ajax() corrupt the source
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-16 18:44 UTC by Petr Pisl
Modified: 2013-05-18 02:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2013-05-16 18:44:04 UTC
Have a simple html file with javascript snippets:

<script>$.ajax({
                url: "test.html",
                context: document.body,
                converters: {},
                |
                complete: function (jqXHR, textStatus ) {
                        
                },
                beforeSend: function (xhr) {
                        
                    },
                
              }).done(function() {
                $(this).addClass("done");
                        
              }
                  )
                  
        </script>

Try to complete a property name at position marked with | char. The source after completion is corrupted.
Comment 1 Petr Pisl 2013-05-16 18:47:34 UTC
Fixed in web-main: http://hg.netbeans.org/web-main/rev/32549385da9c
Comment 2 Quality Engineering 2013-05-18 02:55:47 UTC
Integrated into 'main-golden', will be available in build *201305172300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/32549385da9c
User: Petr Pisl <ppisl@netbeans.org>
Log: #229884 - Completing property names of $.ajax() corrupt the source