Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 263936 Details for
Bug 500696
Quickfix for missing library in the .tern-project file doesn't close
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Proposed patch
500696.patch (text/plain), 1013 bytes, created by
Olivier Thomann
on 2016-09-02 10:37:06 EDT
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2016-09-02 10:37:06 EDT
Size:
1013 bytes
patch
obsolete
>diff --git a/bundles/org.eclipse.orion.client.javascript/web/javascript/javascriptProject.js b/bundles/org.eclipse.orion.client.javascript/web/javascript/javascriptProject.js >index c06da77..3d0a3d4 100644 >--- a/bundles/org.eclipse.orion.client.javascript/web/javascript/javascriptProject.js >+++ b/bundles/org.eclipse.orion.client.javascript/web/javascript/javascriptProject.js >@@ -272,7 +272,13 @@ define([ > function _merge(source, dest) { > Object.keys(source).forEach(function(key) { > if(Array.isArray(dest[key]) && Array.isArray(source[key])) { >- dest[key] = [].concat(dest[key], source[key]); >+ var result = dest[key]; >+ source[key].forEach(function(element) { >+ if (!result.some(function(resultElement) { return element === resultElement;})) { >+ result.push(element); >+ } >+ }); >+ dest[key] = result; > } else if(typeof dest[key] === 'object' && dest[key] !== null) { > source[key] = source[key] || Object.create(null); > _merge(source[key], dest[key]);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 500696
: 263936