Skip to content

Commit

Permalink
API docs corrections and minor code simplification.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Apr 6, 2015
1 parent 741c7f1 commit f6ebaab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/filetools/plugin.js
Expand Up @@ -246,11 +246,11 @@
}

/**
* Map of the loaders created by the {@link #create create} method. Loaders {@link CKEDITOR.fileTools.fileLoader#id id}
* is key, {@link CKEDITOR.fileTools.fileLoader loader instance} is a value.
* Array of loaders created by the {@link #create} method. Loaders' {@link CKEDITOR.fileTools.fileLoader#id ids}
* are indexes.
*
* @readonly
* @property {String} loaders
* @property {CKEDITOR.fileTools.fileLoader[]} loaders
*/

/**
Expand Down Expand Up @@ -681,7 +681,7 @@
* @returns {Boolean} `true` if the loading and uploading finished.
*/
isFinished: function() {
return this.status == 'loaded' || this.status == 'uploaded' || this.status == 'error' || this.status == 'abort';
return !!this.status.match( /^(?:loaded|uploaded|error|abort)$/ );
}

/**
Expand Down

0 comments on commit f6ebaab

Please sign in to comment.