From 68efde1b5d94cbf0b994f5922fa4fc81d2d3cc95 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Mon, 23 Dec 2013 20:00:34 -0500 Subject: bind everything in api, fix _next bug --- www/js/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'www/js/api.js') diff --git a/www/js/api.js b/www/js/api.js index b6fd474..7ae4e38 100644 --- a/www/js/api.js +++ b/www/js/api.js @@ -1,5 +1,5 @@ "use strict"; -window.html5ks.api = { +window.html5ks.api = new (function () { return { init: function () { var chrs = html5ks.data.characters; for (var ch in chrs) { @@ -477,4 +477,4 @@ window.html5ks.api = { html5ks.state[type] = status; document.getElementById(type).style.display = status ? "block" : "none"; } -}; +};}); -- cgit v1.2.3-54-g00ecf