Fix a bug in the file-system module for iOS (NSDate is automatically marshalled to JS Date).

This commit is contained in:
atanasovg
2015-04-08 14:14:52 +03:00
parent 0f5e107205
commit 57679f8fc8
3 changed files with 16 additions and 6 deletions

View File

@ -159,7 +159,8 @@ export class File extends FileSystemEntity {
}
get isLocked(): boolean {
return this[fileLockedProperty];
// !! is a boolean conversion/cast, handling undefined as well
return !!this[fileLockedProperty];
}
public readText(encoding?: string): Promise<string> {