custom-file
Advanced tools
Comparing version 0.5.5 to 0.5.6
@@ -43,3 +43,3 @@ (function() { | ||
AbstractFolder.prototype._updateFS = function(aFS) { | ||
if (!(fs && AbstractFile.fs)) { | ||
if (fs !== AbstractFile.fs || !fs) { | ||
if (!aFS) { | ||
@@ -46,0 +46,0 @@ aFS = AbstractFile.fs; |
@@ -34,4 +34,6 @@ (function() { | ||
File.prototype._updateFS = function(aFS) { | ||
if (!(fs && AbstractFile.fs)) { | ||
AbstractFile.fs = aFS; | ||
if (fs !== AbstractFile.fs || !fs) { | ||
if (aFS) { | ||
AbstractFile.fs = aFS; | ||
} | ||
fs = AbstractFile.fs; | ||
@@ -38,0 +40,0 @@ |
(function() { | ||
var AbstractFile, CustomFile, File, Folder, extend, isFunction, isObject, replaceCtor; | ||
var AbstractFile, AbstractFolder, CustomFile, File, Folder, extend, isFunction, isObject, replaceCtor; | ||
@@ -16,2 +16,4 @@ replaceCtor = require('inherits-ex/lib/replaceCtor'); | ||
AbstractFolder = require('./abstract-folder'); | ||
Folder = require('./folder'); | ||
@@ -53,2 +55,3 @@ | ||
AbstractFile.fs = value; | ||
AbstractFolder.prototype._updateFS(); | ||
return CustomFile; | ||
@@ -55,0 +58,0 @@ }; |
{ | ||
"name": "custom-file", | ||
"description": "It abstracts the File and Folder classes, can be used on any virtual file system, and stream supports.", | ||
"version": "0.5.5", | ||
"version": "0.5.6", | ||
"homepage": "https://github.com/snowyu/custom-file.js", | ||
@@ -6,0 +6,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
55157
389