diff -r 4f2511a70880 -r af9e716b01bc client/js/main.js --- a/client/js/main.js Thu Mar 14 00:29:09 2013 +0100 +++ b/client/js/main.js Thu Mar 14 11:29:33 2013 +0100 @@ -164,9 +164,12 @@ _input = this.$.find(".Rk-Web-Search-Input") _form = this.$.find(".Rk-Web-Search-Form"); Rkns._(_opts.search).each(function(_search, _key) { - var _searchObj = new _search.type(_this, _search); - _this.search_engines.push(_searchObj); + console.log(_search, Rkns[_search.type]); + if (Rkns[_search.type] && Rkns[_search.type].Search) { + _this.search_engines.push(new Rkns[_search.type].Search(_this, _search)); + } }); + console.log(_this.search_engines); _select.html( Rkns._(this.search_engines).map(function(_search, _key) { return _tmpl({ @@ -197,7 +200,9 @@ this.setSearchEngine(0); } Rkns._(_opts.bins).each(function(_bin) { - _this.tabs.push(new _bin.bin(_this, _bin)); + if (Rkns[_bin.type] && Rkns[_bin.type].Bin) { + _this.tabs.push(new Rkns[_bin.type].Bin(_this, _bin)); + } }); this.$.find(".Rk-Bins")