minibar: rewrite minibar.js in a more idiomatic JS OOP style

This provides easier access to minibar internals for people who want to extend
it, but probably also reveals too much of the internal machinery...
This commit is contained in:
hallgren
2010-12-01 16:37:14 +00:00
parent b0027c3305
commit 18e3687832
2 changed files with 149 additions and 91 deletions

View File

@@ -27,7 +27,7 @@ This page doesn't works unless JavaScript is enabled.
&amp; <a href="http://www.grammaticalframework.org:41296/translate/">Translator</a>]
</small>
<small class=modtime>
HTML <!-- hhmts start --> Last modified: Tue Oct 26 14:40:33 CEST 2010 <!-- hhmts end -->
HTML <!-- hhmts start --> Last modified: Wed Dec 1 17:36:24 CET 2010 <!-- hhmts end -->
</small>
<address>
<a href="http://www.cs.chalmers.se/~hallgren/">TH</a>
@@ -51,9 +51,8 @@ var minibar_options= {
default_source_language: "Eng",
try_google: true
}
start_minibar(server,minibar_options,"minibar1");
var minibar=new Minibar(server,minibar_options,"minibar1");
</script>
</body>
</html>