Permalink
Browse files

* [ringo-fs] Fixed getStat().

  • Loading branch information...
1 parent 77df784 commit b14190416ec74177adf5186f14ef984ff682f2c6 @keeto committed Jan 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/engines/ringo/0.5.0/fs.js
@@ -96,7 +96,7 @@ var _File = exports.File = new Class({
var path = this.$path,
size = fs.size(path),
modified = fs.lastModified(path);
- if (size !== undefined && modified !== undefined) this.onStat({size: size, modified: modified.getTime()});
+ if (size !== undefined && modified !== undefined) return this.onStat({size: size, modified: modified.getTime()});
throw new Error('Cannot read stats.');
} catch(e){
this.onStatError(e);

0 comments on commit b141904

Please sign in to comment.