From 595a0acc2554da4c4c52f065dc76893c241f2624 Mon Sep 17 00:00:00 2001 From: wei <> Date: Tue, 1 May 2007 00:27:01 +0000 Subject: Add comments to active record relationships, add semi-colon to js files. --- .../source/prado/activecontrols/ajax3.js | 4 ++-- .../source/prado/colorpicker/colorpicker.js | 8 ++++---- .../source/prado/datepicker/datepicker.js | 2 -- .../Web/Javascripts/source/prado/logger/logger.js | 24 +++++++++++----------- .../source/prado/scriptaculous-adapter.js | 10 ++++----- 5 files changed, 23 insertions(+), 25 deletions(-) (limited to 'framework/Web/Javascripts') diff --git a/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js b/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js index dbf768a6..27537e8b 100644 --- a/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js +++ b/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js @@ -424,7 +424,7 @@ Object.extend(Prado.CallbackRequest, } self.tryNextRequest(); } -}) +}); /** * Automatically aborts the current request when a priority request has returned. @@ -664,4 +664,4 @@ Prado.Callback = function(UniqueID, parameter, onSuccess, options) request = new Prado.CallbackRequest(UniqueID, callback); request.dispatch(); return false; -} +}; diff --git a/framework/Web/Javascripts/source/prado/colorpicker/colorpicker.js b/framework/Web/Javascripts/source/prado/colorpicker/colorpicker.js index 423338e0..746a0caf 100644 --- a/framework/Web/Javascripts/source/prado/colorpicker/colorpicker.js +++ b/framework/Web/Javascripts/source/prado/colorpicker/colorpicker.js @@ -114,7 +114,7 @@ Rico.Color.createFromHex = function(hexCode) { blue = b+b; } return new Rico.Color( parseInt(red,16), parseInt(green,16), parseInt(blue,16) ); -} +}; /** * Factory method for creating a color from the background of @@ -142,7 +142,7 @@ Rico.Color.createColorFromBackground = function(elem) { } else return new Rico.Color(255,255,255); -} +}; Rico.Color.HSBtoRGB = function(hue, saturation, brightness) { @@ -197,7 +197,7 @@ Rico.Color.HSBtoRGB = function(hue, saturation, brightness) { } return { r : parseInt(red), g : parseInt(green) , b : parseInt(blue) }; -} +}; Rico.Color.RGBtoHSB = function(r, g, b) { @@ -239,7 +239,7 @@ Rico.Color.RGBtoHSB = function(r, g, b) { } return { h : hue, s : saturation, b : brightness }; -} +}; Prado.WebUI.TColorPicker = Class.create(); diff --git a/framework/Web/Javascripts/source/prado/datepicker/datepicker.js b/framework/Web/Javascripts/source/prado/datepicker/datepicker.js index 2f1e8261..262e0c1c 100644 --- a/framework/Web/Javascripts/source/prado/datepicker/datepicker.js +++ b/framework/Web/Javascripts/source/prado/datepicker/datepicker.js @@ -691,6 +691,4 @@ Prado.WebUI.TDatePicker.prototype = } } - - }; \ No newline at end of file diff --git a/framework/Web/Javascripts/source/prado/logger/logger.js b/framework/Web/Javascripts/source/prado/logger/logger.js index b21df1ae..a3b7be1f 100644 --- a/framework/Web/Javascripts/source/prado/logger/logger.js +++ b/framework/Web/Javascripts/source/prado/logger/logger.js @@ -13,7 +13,7 @@ Use it all you want. Just remember to give me some credit :) // Custom Event // ------------ -CustomEvent = Class.create() +CustomEvent = Class.create(); CustomEvent.prototype = { initialize : function() { this.listeners = [] @@ -54,7 +54,7 @@ CustomEvent.prototype = { return indexes } -} +}; // ------ // Cookie @@ -128,7 +128,7 @@ var Cookie = { } } -} +}; // ------ // Logger @@ -177,7 +177,7 @@ Logger = { this.logEntries = [] this.onclear.dispatch() } -} +}; LogEntry = Class.create() LogEntry.prototype = { @@ -185,9 +185,9 @@ LogEntry.prototype = { this.message = message this.tag = tag } -} +}; -LogConsole = Class.create() +LogConsole = Class.create(); LogConsole.prototype = { // Properties @@ -285,7 +285,7 @@ LogConsole.prototype = { } var self=this; Event.observe(document, 'keydown', function(e) - { + { if((e.altKey==true) && Event.keyCode(e) == toggleKey ) //Alt+J | Ctrl+J self.toggle(); }); @@ -456,7 +456,7 @@ LogConsole.prototype = { this.commandIndex = 0 } } -} +}; // ------------------------- @@ -552,7 +552,7 @@ function inspect(o) res.push(useKey + ":" + val); } return "{" + res.join(", ") + "}"; -} +}; Array.prototype.contains = function(object) { for(var i = 0; i < this.length; i++) { @@ -560,10 +560,10 @@ Array.prototype.contains = function(object) { } return false -} +}; // Helper Alias for simple logging -var puts = function() {return Logger.log(arguments[0], arguments[1])} +var puts = function() {return Logger.log(arguments[0], arguments[1])}; /************************************* @@ -740,7 +740,7 @@ Prado.Inspector = "#so_mContainer .topLevel { margin:0; padding:0; } " + "#so_mContainer .credits { float:left; width:200px; font:6.5pt verdana; color:#000; padding:2px; margin-left:5px; text-align:left; border-top:1px solid #000; margin-top:15px; width:75%; } " + "#so_mContainer .credits a { font:9px verdana; font-weight:bold; color:#004465; text-decoration:none; background-color:transparent; }" -} +}; //similar function to var_dump in PHP, brings up the javascript object tree UI. function var_dump(obj) diff --git a/framework/Web/Javascripts/source/prado/scriptaculous-adapter.js b/framework/Web/Javascripts/source/prado/scriptaculous-adapter.js index 5ace2598..96fc220a 100644 --- a/framework/Web/Javascripts/source/prado/scriptaculous-adapter.js +++ b/framework/Web/Javascripts/source/prado/scriptaculous-adapter.js @@ -9,7 +9,7 @@ Function.prototype.bindEvent = function() { return __method.apply(object, [event || window.event].concat(args)); } -} +}; /** * Creates a new function by copying function definition from @@ -26,7 +26,7 @@ Class.extend = function(base, definition) if(definition) Object.extend(component.prototype, definition); return component; -} +}; /* Base, version 1.0.2 @@ -175,7 +175,7 @@ Prado.PostBack = function(event,options) /*if(options['StopEvent']) */ Event.stop(event); Event.fireEvent(form,"submit"); -} +}; Prado.Element = { @@ -346,7 +346,7 @@ Prado.Element = { content.evalScripts(); } -} +}; Prado.Element.Selection = { @@ -559,7 +559,7 @@ Prado.Element.Insert = { new Insertion.Before(element, content); } -} +}; /** -- cgit v1.2.3