Menu

#55 openFile function is not using the provided arguments

open
nobody
None
5
2011-02-13
2011-02-13
Hai Dang
No

As the title says, the openFile function is not using the provided arguments as parameters, intead it refers to global parameters.

File: edit_area_functions.js
Line: 848
Function: open_file

For example, it should use the provided syntax selection, instead of the global one:
Line 866: new_file['syntax'] = this.settings['syntax'];
should be changed to
new_file['syntax'] = (settings['syntax']) ? settings['syntax'] : this.settings['syntax'];

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.