Explorar o código

Added some comments.

Taddeus Kroes %!s(int64=14) %!d(string=hai) anos
pai
achega
9feb865738
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      js/menu.js

+ 3 - 0
js/menu.js

@@ -15,6 +15,8 @@
 				load_content(url);
 			}
 		},
+		// Compare the current hash to the url in a short interval
+		// to allow browsing with forward/backward links
 		interval,
 		reset_interval = function() {
 			clearInterval(interval);
@@ -27,6 +29,7 @@
 	if( url == '' )
 		url = location.hash = 'pages';
 	
+	// Assert instant response to hashtag links
 	$('a[href^=#]').live('click', function() {
 		reset_interval();
 		refresh_url($(this).attr('href').substring(1));