AFaust / alfresco-enhanced-script-environment

Eclipse Public License 1.0
12 stars 5 forks source link

Script compilation fails for empty JS files #2

Closed AFaust closed 11 years ago

AFaust commented 11 years ago

The enhanced script processors on Repository and Surf tier expect all scripts to be non-empty. An empty JS source file was introduced in Alfresco 4.1.4 with the document-picker.get.js controller in Share. While empty JS source files should be considered bad practice, the enhanced script processor should not fail to compile it to a NO-OP script.

AFaust commented 11 years ago

Fixed by https://github.com/AFaust/alfresco-enhanced-script-environment/commit/706042d4a8e679fd57d4e6a2b42ddcf9475d024a