[Rt-commit] rt branch, squish-refactor, updated. rt-3.9.7-898-g58f9fc1

Thomas Sibley trs at bestpractical.com
Mon Dec 27 12:23:50 EST 2010


The branch, squish-refactor has been updated
       via  58f9fc1a1357d592ea07c59a38b6d40ff0f7326b (commit)
      from  3a5f91569b88172942b27bff4cdd93006644f6cf (commit)

Summary of changes:
 lib/RT.pm      |   10 +++++-----
 t/web/squish.t |    2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

- Log -----------------------------------------------------------------
commit 58f9fc1a1357d592ea07c59a38b6d40ff0f7326b
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Mon Dec 27 12:23:23 2010 -0500

    Rename AddJavaScripts to AddJavaScript and JavaScripts to JavaScript

diff --git a/lib/RT.pm b/lib/RT.pm
index 156cc4c..50da99d 100755
--- a/lib/RT.pm
+++ b/lib/RT.pm
@@ -754,17 +754,17 @@ sub CanonicalizeGeneratedPaths {
 
 }
 
-=head2 AddJavaScripts
+=head2 AddJavaScript
 
 helper method to add js files to C<JSFiles> config.
 to add extra css files, you can add the following line
 in the plugin's main file:
 
-    RT->AddJavaScripts( 'foo.js', 'bar.js' ); 
+    RT->AddJavaScript( 'foo.js', 'bar.js' ); 
 
 =cut
 
-sub AddJavaScripts {
+sub AddJavaScript {
     my $self = shift;
 
     my @old = RT->Config->Get('JSFiles');
@@ -790,13 +790,13 @@ sub AddStyleSheets {
     return RT->Config->Get('CSSFiles');
 }
 
-=head2 JavaScripts
+=head2 JavaScript
 
 helper method of RT->Config->Get('JSFiles')
 
 =cut
 
-sub JavaScripts {
+sub JavaScript {
     return RT->Config->Get('JSFiles');
 }
 
diff --git a/t/web/squish.t b/t/web/squish.t
index b3dac5e..e7cec67 100644
--- a/t/web/squish.t
+++ b/t/web/squish.t
@@ -33,7 +33,7 @@ SKIP:
 {
     skip 'need plack server to reinitialize', 6
       if $ENV{RT_TEST_WEB_HANDLER} && $ENV{RT_TEST_WEB_HANDLER} ne 'plack';
-    RT->AddJavaScripts( 'IE7/IE7.js' );
+    RT->AddJavaScript( 'IE7/IE7.js' );
     RT->AddStyleSheets( 'print.css' );
     ( $url, $m ) = RT::Test->started_ok;
 

-----------------------------------------------------------------------


More information about the Rt-commit mailing list