sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[livejournal] r21824: fix an error occured in conflicts resolu...

Committer: vtroitsky
fix an error occured in conflicts resolution
U   branches/r91.3/htdocs/js/basic.js
Modified: branches/r91.3/htdocs/js/basic.js
===================================================================
--- branches/r91.3/htdocs/js/basic.js	2012-04-27 09:08:32 UTC (rev 21823)
+++ branches/r91.3/htdocs/js/basic.js	2012-04-27 09:14:53 UTC (rev 21824)
@@ -238,6 +238,13 @@
 	}
 };
 
+LJ.console = function() {
+	var consoleExists = function() { return 'console' in window },
+		runIfExists = function(method, args) {
+			if (consoleExists() && console[method]) {
+				console[method].apply(console, args);
+				return true;
+			}
 
 			return false;
 		};

Tags: js, livejournal, sunnyman, vtroitsky
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