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 262038 Details for
Bug 494672
lastIndexOf(..) is not a function error in javascriptProject.js
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
494672.patch (text/plain), 1.08 KB, created by
Olivier Thomann
on 2016-05-26 13:33:39 EDT
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2016-05-26 13:33:39 EDT
Size:
1.08 KB
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 fdf8f82..44308b8 100644 >--- a/bundles/org.eclipse.orion.client.javascript/web/javascript/javascriptProject.js >+++ b/bundles/org.eclipse.orion.client.javascript/web/javascript/javascriptProject.js >@@ -358,12 +358,18 @@ define([ > var f = file, > toQ, toN; > if(typeof f === "object") { >- if(state === "onDeleted") { >- f = f.deleteLocation; >- } else if(state === "onMoved") { >- toQ = f.result ? f.result.Location : undefined; >- toN = f.result ? f.result.Name : undefined; >- f = f.source; >+ switch(state) { >+ case "onDeleted" : >+ f = f.deleteLocation; >+ break; >+ case "onMoved" : >+ toQ = f.result ? f.result.Location : undefined; >+ toN = f.result ? f.result.Name : undefined; >+ f = f.source; >+ break; >+ case "onCreated" : >+ f = f.result.Location; >+ break; > } > } > delete this.map[f];
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 494672
: 262038