atLoad method now called internally by each widget, no need to call externally. Tweak...
[infodrom/rico3] / minsrc / ricoSearch.js
index 0f9e440..1678b21 100644 (file)
@@ -1,6 +1,6 @@
 /*
- *  (c) 2005-2009 Richard Cowin (http://openrico.org)
- *  (c) 2005-2009 Matt Brown (http://dowdybrown.com)
+ *  (c) 2005-2011 Richard Cowin (http://openrico.org)
+ *  (c) 2005-2011 Matt Brown (http://dowdybrown.com)
  *
  *  Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
  *  file except in compliance with the License. You may obtain a copy of the License at
@@ -38,6 +38,8 @@ Rico.KeywordSearch.prototype = {
       maxSuggest : 20,
       width: '12em'
     });
+    var self=this;
+    Rico.onLoad(function() { self.atLoad(); })
   },
 
   atLoad : function() {