Skip to content

Commit

Permalink
Added comments to the code changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredck committed Oct 4, 2013
1 parent b4b9aeb commit 13d35e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/resourcemanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ CKEDITOR.resourceManager.prototype = {
for ( var i = 0; i < names.length; i++ ) {
var name = names[ i ];

// If "fileName" is not provided, we assume that it may be available
// in "path". Try to extract it in this case.
if ( !fileName ) {
path = path.replace( /[^\/]+$/, function( match ) {
fileName = match;
Expand All @@ -153,6 +155,9 @@ CKEDITOR.resourceManager.prototype = {

this.externals[ name ] = {
dir: path,

// Use the default file name if there is no "fileName" and it
// was not found in "path".
file: fileName || ( this.fileName + '.js' )
};
}
Expand Down

0 comments on commit 13d35e5

Please sign in to comment.