From ca3b1fd973242b2fd2afa5daf7b57daf736c15e8 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Fri, 17 Sep 2010 19:59:16 +0000 Subject: [PATCH] fixed unterminated JS statements --- theme/anomaly/javascript/navigation.js | 2 +- theme/formal_white/javascript/navigation.js | 2 +- theme/splash/yui/colourswitcher/colourswitcher.js | 6 +++--- user/selector/module.js | 12 ++++++------ 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/theme/anomaly/javascript/navigation.js b/theme/anomaly/javascript/navigation.js index ded0dc8c41a..bb52d72a057 100644 --- a/theme/anomaly/javascript/navigation.js +++ b/theme/anomaly/javascript/navigation.js @@ -91,7 +91,7 @@ var anomaly = (function(){ pre: {hasblocks:true,c:'side-pre-only'}, post: {hasblocks:true,c:'side-post-only'}, noblocksc:'noblocks' - } + }; M.core_dock.Y.all('div.block-region').each(function(blockregion){ if (blockregion.hasClass('side-pre') && blockregion.all('.block').size() == 0) { blockregions.pre.hasblocks = false; diff --git a/theme/formal_white/javascript/navigation.js b/theme/formal_white/javascript/navigation.js index 1700cf222da..1f6b1e19169 100644 --- a/theme/formal_white/javascript/navigation.js +++ b/theme/formal_white/javascript/navigation.js @@ -91,7 +91,7 @@ var fw = (function(){ pre: {hasblocks:true,c:'side-pre-only'}, post: {hasblocks:true,c:'side-post-only'}, noblocksc:'noblocks' - } + }; M.core_dock.Y.all('div.block-region').each(function(blockregion){ if (blockregion.hasClass('side-pre') && blockregion.all('.block').size() == 0) { blockregions.pre.hasblocks = false; diff --git a/theme/splash/yui/colourswitcher/colourswitcher.js b/theme/splash/yui/colourswitcher/colourswitcher.js index de84ac10d60..7bde40ec2d6 100644 --- a/theme/splash/yui/colourswitcher/colourswitcher.js +++ b/theme/splash/yui/colourswitcher/colourswitcher.js @@ -9,7 +9,7 @@ var COLOURS = ['red','green','blue','orange']; */ var ColourSwitcher = function() { ColourSwitcher.superclass.constructor.apply(this, arguments); -} +}; ColourSwitcher.prototype = { /** * Constructor for this class @@ -43,7 +43,7 @@ ColourSwitcher.prototype = { // Store the users selection (Uses AJAX to save to the database) M.util.set_user_preference('theme_splash_chosen_colour', colour); } -} +}; // Make the colour switcher a fully fledged YUI module Y.extend(ColourSwitcher, Y.Base, ColourSwitcher.prototype, { NAME : 'Splash theme colour switcher', @@ -54,7 +54,7 @@ Y.extend(ColourSwitcher, Y.Base, ColourSwitcher.prototype, { } }); // Our splash theme namespace -M.theme_splash = M.theme_splash || {} +M.theme_splash = M.theme_splash || {}; // Initialisation function for the colour switcher M.theme_splash.initColourSwitcher = function(cfg) { return new ColourSwitcher(cfg); diff --git a/user/selector/module.js b/user/selector/module.js index 582da354b5b..d53b5e027b1 100644 --- a/user/selector/module.js +++ b/user/selector/module.js @@ -15,11 +15,11 @@ M.core_user.user_selectors = []; */ M.core_user.get_user_selector = function (name) { return this.user_selectors[name] || null; -} +}; /** * Initialise a new user selector. - * + * * @param {YUI} Y The YUI3 instance * @param {string} name the control name/id. * @param {string} hash the hash that identifies this selector in the user's session. @@ -303,7 +303,7 @@ M.core_user.init_user_selector = function (Y, name, hash, extrafields, lastsearc return false; } } - } + }; // Augment the user selector with the EventTarget class so that we can use // custom events Y.augment(user_selector, Y.EventTarget, null, null, {}); @@ -313,7 +313,7 @@ M.core_user.init_user_selector = function (Y, name, hash, extrafields, lastsearc this.user_selectors[name] = user_selector; // Return the user selector return user_selector; -} +}; /** * Initialise a class that updates the user's preferences when they change one of @@ -348,9 +348,9 @@ M.core_user.init_user_selector_options_tracker = function(Y) { set_user_preference : function(e, name) { M.util.set_user_preference(name, Y.one('#'+name+'id').get('checked')); } - } + }; // Initialise the options tracker user_selector_options_tracker.init(); // Return it just incase it is ever wanted return user_selector_options_tracker; -} \ No newline at end of file +}; \ No newline at end of file