@ -84,6 +84,7 @@ define([
Object . keys ( Env . folders ) . forEach ( function ( fId ) {
Object . keys ( Env . folders ) . forEach ( function ( fId ) {
Env . folders [ fId ] . userObject . findChannels ( [ channel ] ) . forEach ( function ( id ) {
Env . folders [ fId ] . userObject . findChannels ( [ channel ] ) . forEach ( function ( id ) {
ret . push ( {
ret . push ( {
fId : fId ,
data : Env . folders [ fId ] . userObject . getFileData ( id ) ,
data : Env . folders [ fId ] . userObject . getFileData ( id ) ,
userObject : Env . folders [ fId ] . userObject
userObject : Env . folders [ fId ] . userObject
} ) ;
} ) ;
@ -95,12 +96,15 @@ define([
var findHref = function ( Env , href ) {
var findHref = function ( Env , href ) {
var ret = [ ] ;
var ret = [ ] ;
var id = Env . user . userObject . getIdFromHref ( href ) ;
var id = Env . user . userObject . getIdFromHref ( href ) ;
ret . push ( {
if ( id ) {
data : Env . user . userObject . getFileData ( id ) ,
ret . push ( {
userObject : Env . user . userObject
data : Env . user . userObject . getFileData ( id ) ,
} ) ;
userObject : Env . user . userObject
} ) ;
}
Object . keys ( Env . folders ) . forEach ( function ( fId ) {
Object . keys ( Env . folders ) . forEach ( function ( fId ) {
var id = Env . folders [ fId ] . userObject . getIdFromHref ( href ) ;
var id = Env . folders [ fId ] . userObject . getIdFromHref ( href ) ;
if ( ! id ) { return ; }
ret . push ( {
ret . push ( {
fId : fId ,
fId : fId ,
data : Env . folders [ fId ] . userObject . getFileData ( id ) ,
data : Env . folders [ fId ] . userObject . getFileData ( id ) ,
@ -717,6 +721,7 @@ define([
addPad : callWithEnv ( addPad ) ,
addPad : callWithEnv ( addPad ) ,
// Tools
// Tools
findChannel : callWithEnv ( findChannel ) ,
findChannel : callWithEnv ( findChannel ) ,
findHref : callWithEnv ( findHref ) ,
user : Env . user ,
user : Env . user ,
folders : Env . folders
folders : Env . folders
} ;
} ;