diff -r 4f2511a70880 -r af9e716b01bc client/js/ldtjson-bin.js --- a/client/js/ldtjson-bin.js Thu Mar 14 00:29:09 2013 +0100 +++ b/client/js/ldtjson-bin.js Thu Mar 14 11:29:33 2013 +0100 @@ -1,5 +1,15 @@ Rkns.Ldt = {} +Rkns.Ldt.Bin = function(_renkan, _opts) { + if (_opts.ldt_type) { + var resclass = Rkns.Ldt[_opts.ldt_type+"Bin"]; + if (resclass) { + return new resclass(_renkan, _opts); + } + } + console.error("No such LDT Bin Type"); +} + Rkns.Ldt.ProjectBin = Rkns.Utils.inherit(Rkns._BaseBin); Rkns.Ldt.ProjectBin.prototype.tagTemplate = Rkns._.template( @@ -13,6 +23,7 @@ ); Rkns.Ldt.ProjectBin.prototype._init = function(_renkan, _opts) { + console.log("Initializing Project Bin"); this.renkan = _renkan; this.proj_id = _opts.project_id; this.ldt_platform = _opts.ldt_platform || "http://ldt.iri.centrepompidou.fr/";