Index: ui/file_manager/file_manager/common/js/mock_entry.js |
diff --git a/ui/file_manager/file_manager/common/js/mock_entry.js b/ui/file_manager/file_manager/common/js/mock_entry.js |
index c3f30d5ff43edd7110e91205db258773de823e3d..01b5815e26964e59cbd3776833d00e85d9a95dd5 100644 |
--- a/ui/file_manager/file_manager/common/js/mock_entry.js |
+++ b/ui/file_manager/file_manager/common/js/mock_entry.js |
@@ -176,7 +176,7 @@ MockEntry.prototype.clone = function(fullpath) { |
*/ |
function MockFileEntry(filesystem, fullPath, metadata) { |
MockEntry.call(this, filesystem, fullPath); |
- this.metadata_ = metadata; |
+ this.metadata = metadata; |
this.isFile = true; |
this.isDirectory = false; |
} |
@@ -187,14 +187,16 @@ MockFileEntry.prototype = { |
/** |
* Obtains metadata of the entry. |
- * @param {function(Object)} callback Function to take the metadata. |
+ * |
+ * @param {function(!Metadata)} onSuccess Function to take the metadata. |
+ * @param {function(Error)} onError |
*/ |
MockFileEntry.prototype.getMetadata = function(onSuccess, onError) { |
new Promise(function(fulfill, reject) { |
if (this.filesystem && !this.filesystem.entries[this.fullPath]) |
reject(new DOMError('NotFoundError')); |
else |
- onSuccess(this.metadata_); |
+ onSuccess(this.metadata); |
}.bind(this)).then(onSuccess, onError); |
}; |