From 3c04a71b080ae15c2bfd66aa9408db02768580c7 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 23 Apr 2013 09:54:31 -0400 Subject: [PATCH] renaming functions so that they're less derpy (from enable/enableAll to enable/onclick) --- public/src/ajaxify.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index 5788486f70..a1446dedc7 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -19,7 +19,7 @@ var ajaxify = {}; content.innerHTML = templates[tpl_url]; exec_body_scripts(content); - ajaxify.enableAll(); + ajaxify.enable(); } return true; @@ -28,11 +28,11 @@ var ajaxify = {}; return false; } - ajaxify.enableAll = function() { - $('a').unbind('click', ajaxify.enable).bind('click', ajaxify.enable); + ajaxify.enable = function() { + $('a').unbind('click', ajaxify.onclick).bind('click', ajaxify.onclick); } - ajaxify.enable = function(ev) { + ajaxify.onclick = function(ev) { var url = this.href.replace(rootUrl +'/', ''); if (ajaxify.go(url)) { @@ -46,7 +46,7 @@ var ajaxify = {}; content = content || document.getElementById('content'); - ajaxify.enableAll(); + ajaxify.enable(); }); function exec_body_scripts(body_el) {