vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r21943: LJSUP-11897: System to organize JS/CSS s...

Committer: vad
LJSUP-11897: System to organize JS/CSS sources into libraries
U   trunk/cgi-bin/weblib.pl
Modified: trunk/cgi-bin/weblib.pl
===================================================================
--- trunk/cgi-bin/weblib.pl	2012-05-14 07:57:04 UTC (rev 21942)
+++ trunk/cgi-bin/weblib.pl	2012-05-14 07:58:23 UTC (rev 21943)
@@ -1630,8 +1630,7 @@
                 my $res = $_;
                 ## is the key part of library/package
                 if (my $library = $LJ::JS_SOURCE_MAP_REV{$_}){
-                    $res = $library unless $libs{$library};
-                    $libs{$library}++;
+                    $res = $libs{$library}++ ? '' : $library;
                 } 
                 $res;
             } @LJ::NEEDED_RES;

Tags: livejournal, pl, vad, vadvs
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