can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r22027: LJSUP-11158: Update.bml (Lebedev's redes...

Committer: dpetrov
LJSUP-11158: Update.bml (Lebedev's redesign)
U   trunk/htdocs/js/basic.js
Modified: trunk/htdocs/js/basic.js
===================================================================
--- trunk/htdocs/js/basic.js	2012-05-22 13:50:20 UTC (rev 22026)
+++ trunk/htdocs/js/basic.js	2012-05-22 13:58:21 UTC (rev 22027)
@@ -460,6 +460,20 @@
 
 
 
+/**
+ * Get a variable, defined especially for this page in the Site.page.
+ * 
+ * @param {string} Variable name.
+ * @return {*} Returns a page variable or undefined if not found.
+ */
+LJ.pageVar = function(name) {
+	if (Site.page && Site.page.hasOwnProperty(name)) {
+		return Site.page;
+	} else {
+		return void(0);
+	}
+};
+
 LJ.DOM = LJ.DOM || {};
 
 /**

Tags: can3p, dpetrov, js, livejournal
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments