Index: trunk/extensions/WikiAtHome/WikiAtHome.js |
— | — | @@ -136,7 +136,7 @@ |
137 | 137 | //set the initial stats layout |
138 | 138 | $j('#tab-stats').html( |
139 | 139 | '<h2>Some Cool Visual Stats Go here!</h2>' |
140 | | - ) |
| 140 | + ); |
141 | 141 | |
142 | 142 | //set tabs to initial layout |
143 | 143 | $j('#tab-jobs').html( |
— | — | @@ -214,7 +214,7 @@ |
215 | 215 | $j('#tab-jobs .wah-gen-status').html( gM( 'wah-nojobfound', seconds2npt( _this.jobsearch_delay - i )) ); |
216 | 216 | } |
217 | 217 | setTimeout(delayJobUpdate, 1000); |
218 | | - } |
| 218 | + }; |
219 | 219 | setTimeout(delayJobUpdate, 1000); |
220 | 220 | }, |
221 | 221 | doProccessJob:function( job ){ |
— | — | @@ -274,7 +274,7 @@ |
275 | 275 | }else if( _this.fogg.state == "download failed"){ |
276 | 276 | mw.log('download state failed'); |
277 | 277 | } |
278 | | - } |
| 278 | + }; |
279 | 279 | |
280 | 280 | //do the initial call to downloading state updates |
281 | 281 | if( _this.fogg.state == 'downloading'){ |
— | — | @@ -307,7 +307,7 @@ |
308 | 308 | return false; |
309 | 309 | } |
310 | 310 | setTimeout(updateEncodeState, 100); |
311 | | - } |
| 311 | + }; |
312 | 312 | //our updateUploadState update |
313 | 313 | var updateUploadState = function(){ |
314 | 314 | _this.updateProgress( _this.fogg.progress(), 'wah-uploading'); |
— | — | @@ -340,7 +340,7 @@ |
341 | 341 | |
342 | 342 | var getNextTranscodeJob = function(){ |
343 | 343 | _this.lookForJob( job.job_set_id ); |
344 | | - } |
| 344 | + }; |
345 | 345 | //display the msg for 10 seconds |
346 | 346 | setTimeout(getNextTranscodeJob, 10000); |
347 | 347 | }else{ |
Index: trunk/extensions/TreeAndMenu/dtree.js |
— | — | @@ -39,7 +39,7 @@ |
40 | 40 | useStatusText : false, |
41 | 41 | closeSameLevel : false, |
42 | 42 | inOrder : false |
43 | | - } |
| 43 | + }; |
44 | 44 | this.icon = { |
45 | 45 | root : 'img/base.gif', |
46 | 46 | folder : 'img/folder.gif', |
— | — | @@ -215,7 +215,7 @@ |
216 | 216 | dTree.prototype.oAll = function(status) { |
217 | 217 | for (var n=0; n<this.aNodes.length; n++) { |
218 | 218 | if (this.aNodes[n]._hc && this.aNodes[n].pid != this.root.id) { |
219 | | - this.nodeStatus(status, n, this.aNodes[n]._ls) |
| 219 | + this.nodeStatus(status, n, this.aNodes[n]._ls); |
220 | 220 | this.aNodes[n]._io = status; |
221 | 221 | } |
222 | 222 | } |
— | — | @@ -251,7 +251,7 @@ |
252 | 252 | this.closeAllChildren(this.aNodes[n]); |
253 | 253 | } |
254 | 254 | } |
255 | | -} |
| 255 | +}; |
256 | 256 | |
257 | 257 | // Closes all children of a node |
258 | 258 | dTree.prototype.closeAllChildren = function(node) { |
— | — | @@ -259,10 +259,10 @@ |
260 | 260 | if (this.aNodes[n].pid == node.id && this.aNodes[n]._hc) { |
261 | 261 | if (this.aNodes[n]._io) this.nodeStatus(false, n, this.aNodes[n]._ls); |
262 | 262 | this.aNodes[n]._io = false; |
263 | | - this.closeAllChildren(this.aNodes[n]); |
| 263 | + this.closeAllChildren(this.aNodes[n]); |
264 | 264 | } |
265 | 265 | } |
266 | | -} |
| 266 | +}; |
267 | 267 | |
268 | 268 | // Change the status of a node(open or closed) |
269 | 269 | dTree.prototype.nodeStatus = function(status, id, bottom) { |
Index: trunk/extensions/Drafts/Drafts.js |
— | — | @@ -23,11 +23,11 @@ |
24 | 24 | * Sets the state of the draft |
25 | 25 | * @param {String} newState |
26 | 26 | */ |
27 | | - this.setState = function( newState ) { |
| 27 | + this.setState = function(newState) { |
28 | 28 | // Stores state information |
29 | 29 | state = newState; |
30 | 30 | // Updates UI elements |
31 | | - switch ( state ) { |
| 31 | + switch (state) { |
32 | 32 | case 'unchanged': |
33 | 33 | form.wpDraftSave.disabled = true; |
34 | 34 | form.wpDraftSave.value = messages.saveDraft; |
— | — | @@ -50,21 +50,21 @@ |
51 | 51 | break; |
52 | 52 | default: break; |
53 | 53 | } |
54 | | - } |
| 54 | + }; |
55 | 55 | |
56 | 56 | /** |
57 | 57 | * Gets the state of the draft |
58 | 58 | */ |
59 | 59 | this.getState = function() { |
60 | 60 | return state; |
61 | | - } |
| 61 | + }; |
62 | 62 | |
63 | 63 | /** |
64 | 64 | * Sends draft data to server to be saved |
65 | 65 | */ |
66 | 66 | this.save = function() { |
67 | 67 | // Checks if a save is already taking place |
68 | | - if ( state == 'saving' ) { |
| 68 | + if (state == 'saving') { |
69 | 69 | // Exits function immediately |
70 | 70 | return; |
71 | 71 | } |
— | — | @@ -100,7 +100,7 @@ |
101 | 101 | ); |
102 | 102 | // Ensure timer is cleared in case we saved manually before it expired |
103 | 103 | clearTimeout( timer ); |
104 | | - } |
| 104 | + }; |
105 | 105 | |
106 | 106 | /** |
107 | 107 | * Updates the user interface to represent being out of sync with the server |
— | — | @@ -120,7 +120,7 @@ |
121 | 121 | 'wgDraft.save()', configuration.autoSaveWait * 1000 |
122 | 122 | ); |
123 | 123 | } |
124 | | - } |
| 124 | + }; |
125 | 125 | |
126 | 126 | /** |
127 | 127 | * Initializes the user interface |
— | — | @@ -157,7 +157,7 @@ |
158 | 158 | error: form.wpMsgError.value |
159 | 159 | }; |
160 | 160 | } |
161 | | - } |
| 161 | + }; |
162 | 162 | |
163 | 163 | /** |
164 | 164 | * Responds to the server after a save request has been handled |
Index: trunk/extensions/GoogleMaps/EditorsMap.js |
— | — | @@ -1093,7 +1093,7 @@ |
1094 | 1094 | } |
1095 | 1095 | } |
1096 | 1096 | |
1097 | | - this.setType(type) |
| 1097 | + this.setType(type); |
1098 | 1098 | |
1099 | 1099 | for(i=0;i<map_types_orig.length;i++) { |
1100 | 1100 | if (!map_types_check[old_world+map_types_orig[i].getName()]) { |
Index: trunk/extensions/TalkHere/TalkHere.js |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | div.style.display= 'block'; |
18 | 18 | lnk.innerHTML= talkHereCollapseMsg; |
19 | 19 | lnk.title= talkHereCollapseMsg; |
20 | | - lnk.onclick= function() { talkHereCollapseEditor(lnk, div, page, section, returnto) } |
| 20 | + lnk.onclick= function() { talkHereCollapseEditor(lnk, div, page, section, returnto) }; |
21 | 21 | |
22 | 22 | if (div.innerHTML.length < 200) { |
23 | 23 | talkHereLoadEditor(lnk, div, page, section, returnto); |
— | — | @@ -40,7 +40,7 @@ |
41 | 41 | div.style.display= 'block'; |
42 | 42 | lnk.innerHTML= talkHereCollapseMsg; |
43 | 43 | lnk.title= talkHereCollapseMsg; |
44 | | - lnk.onclick= function() { talkHereCollapseEditor(lnk, div, page, section, returnto) } |
| 44 | + lnk.onclick= function() { talkHereCollapseEditor(lnk, div, page, section, returnto) }; |
45 | 45 | |
46 | 46 | talkHereLoadEditorHTML(div, page, section, returnto) |
47 | 47 | } |
Index: trunk/extensions/WikiTrust/js/tip_centerwindow.js |
— | — | @@ -28,8 +28,8 @@ |
29 | 29 | // created. |
30 | 30 | |
31 | 31 | //=================== GLOBAL TOOLTIP CONFIGURATION =========================// |
32 | | -config. CenterWindow = false // true or false - set to true if you want this to be the default behaviour |
33 | | -config. CenterAlways = false // true or false - recenter if window is resized or scrolled |
| 32 | +config.CenterWindow = false; // true or false - set to true if you want this to be the default behaviour |
| 33 | +config.CenterAlways = false; // true or false - recenter if window is resized or scrolled |
34 | 34 | //======= END OF TOOLTIP CONFIG, DO NOT CHANGE ANYTHING BELOW ==============// |
35 | 35 | |
36 | 36 | |
Index: trunk/extensions/WikiTrust/js/tip_followscroll.js |
— | — | @@ -28,7 +28,7 @@ |
29 | 29 | // created. |
30 | 30 | |
31 | 31 | //=================== GLOBAL TOOLTIP CONFIGURATION ======================// |
32 | | -config. FollowScroll = false // true or false - set to true if you want this to be the default behaviour |
| 32 | +config.FollowScroll = false; // true or false - set to true if you want this to be the default behaviour |
33 | 33 | //======= END OF TOOLTIP CONFIG, DO NOT CHANGE ANYTHING BELOW ==============// |
34 | 34 | |
35 | 35 | |
Index: trunk/extensions/DSMW/specials/SPFunctions.js |
— | — | @@ -19,7 +19,7 @@ |
20 | 20 | //alert(xhr_object.responseText); |
21 | 21 | eval(xhr_object.responseText); |
22 | 22 | } |
23 | | - } |
| 23 | + }; |
24 | 24 | |
25 | 25 | xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); |
26 | 26 | // --- ICI TU PASSE TES ARGUMENTS AU SCRIPT : |
Index: trunk/extensions/SVGZoom/src/svg-uncompressed.js |
— | — | @@ -1132,7 +1132,7 @@ |
1133 | 1133 | // execution now |
1134 | 1134 | self._onDOMContentLoaded(); |
1135 | 1135 | } |
1136 | | - } |
| 1136 | + }; |
1137 | 1137 | |
1138 | 1138 | // needed to intercept window.onload when page loaded first time |
1139 | 1139 | // (i.e. not in cache); see details above in script.onreadystatechange |
— | — | @@ -3415,7 +3415,7 @@ |
3416 | 3416 | svg = NativeHandler._patchAddEventListener(svg); |
3417 | 3417 | |
3418 | 3418 | return svg; |
3419 | | - } |
| 3419 | + }; |
3420 | 3420 | |
3421 | 3421 | // Native browsers will fire the load event for SVG OBJECTs; we need to |
3422 | 3422 | // intercept event listeners for these so that they don't get fired in |
— | — | @@ -3434,7 +3434,7 @@ |
3435 | 3435 | } else { |
3436 | 3436 | throw 'Unknown createElement() call for SVG: ' + name; |
3437 | 3437 | } |
3438 | | - } |
| 3438 | + }; |
3439 | 3439 | |
3440 | 3440 | // cloneNode needs some help or it loses our reference to the patched |
3441 | 3441 | // addEventListener |
— | — | @@ -3469,6 +3469,8 @@ |
3470 | 3470 | } |
3471 | 3471 | } |
3472 | 3472 | |
| 3473 | +}; |
| 3474 | + |
3473 | 3475 | /** Adds a bit of magic we need on addEventListener so we can |
3474 | 3476 | fire SVGLoad events for dynamically created SVG nodes and load events |
3475 | 3477 | for SVG OBJECTS. Unfortunately Firefox has a frustrating bug where we |
— | — | @@ -3788,10 +3790,10 @@ |
3789 | 3791 | t = SVGPoint.prototype; |
3790 | 3792 | } |
3791 | 3793 | |
3792 | | - t.setX = function(newValue) { return this.x = newValue; } |
3793 | | - t.getX = function() { return this.x; } |
3794 | | - t.setY = function(newValue) { return this.y = newValue; } |
3795 | | - t.getY = function() { return this.y; } |
| 3794 | + t.setX = function(newValue) { return this.x = newValue; }; |
| 3795 | + t.getX = function() { return this.x; }; |
| 3796 | + t.setY = function(newValue) { return this.y = newValue; }; |
| 3797 | + t.getY = function() { return this.y; }; |
3796 | 3798 | // custom extension in SVG Web to aid performance for Flash renderer |
3797 | 3799 | t.setXY = function(newValue1, newValue2) { |
3798 | 3800 | this.x = newValue1; |
— | — | @@ -8568,12 +8570,12 @@ |
8569 | 8571 | function createNodeList() { |
8570 | 8572 | var results = []; |
8571 | 8573 | results.item = function(i) { |
8572 | | - if (i >= this.length) { |
8573 | | - return null; // DOM Level 2 spec says return null |
8574 | | - } else { |
8575 | | - return this[i]; |
8576 | | - } |
8577 | | - } |
| 8574 | + if (i >= this.length) { |
| 8575 | + return null; // DOM Level 2 spec says return null |
| 8576 | + } else { |
| 8577 | + return this[i]; |
| 8578 | + } |
| 8579 | + }; |
8578 | 8580 | |
8579 | 8581 | return results; |
8580 | 8582 | } |
Index: trunk/extensions/ImageTagging/img_tagging.js |
— | — | @@ -194,7 +194,7 @@ |
195 | 195 | |
196 | 196 | taggingBusy = false; |
197 | 197 | } |
198 | | - } |
| 198 | + }; |
199 | 199 | request.send(null); |
200 | 200 | |
201 | 201 | var removeTagMsg = gid(kMessageRemovingTag).getAttribute("value"); |
— | — | @@ -329,7 +329,7 @@ |
330 | 330 | while (obj.offsetParent) |
331 | 331 | { |
332 | 332 | curleft += obj.offsetLeft; |
333 | | - curtop += obj.offsetTop |
| 333 | + curtop += obj.offsetTop; |
334 | 334 | obj = obj.offsetParent; |
335 | 335 | } |
336 | 336 | } |
Index: trunk/extensions/skins/Schulenburg/main.js |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | } else { |
28 | 28 | storyBox.innerHTML = httpRequest.responseText; |
29 | 29 | } |
30 | | - } |
| 30 | + }; |
31 | 31 | httpRequest.open( 'GET', url, true ); |
32 | 32 | httpRequest.send(null); |
33 | 33 | } |
Index: trunk/extensions/skins/Tomas/main.js |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | } else { |
28 | 28 | storyBox.innerHTML = httpRequest.responseText; |
29 | 29 | } |
30 | | - } |
| 30 | + }; |
31 | 31 | httpRequest.open( 'GET', url, true ); |
32 | 32 | httpRequest.send(null); |
33 | 33 | } |
Index: trunk/extensions/skins/Donate/main.js |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | } else { |
28 | 28 | storyBox.innerHTML = httpRequest.responseText; |
29 | 29 | } |
30 | | - } |
| 30 | + }; |
31 | 31 | httpRequest.open( 'GET', url, true ); |
32 | 32 | httpRequest.send(null); |
33 | 33 | } |
Index: trunk/extensions/HeaderTabs/skins/headertabs.js |
— | — | @@ -116,4 +116,4 @@ |
117 | 117 | } |
118 | 118 | |
119 | 119 | return false; |
120 | | -} |
| 120 | +}; |
Index: trunk/extensions/SVGEdit/modules/ext.svgedit.formmultipart.js |
— | — | @@ -80,4 +80,4 @@ |
81 | 81 | // note: charset is needed in Safari 5 to workaround a webkit |
82 | 82 | // oddity where it otherwise tries to add it after the boundary. |
83 | 83 | return 'multipart/form-data; charset=utf-8; boundary=' + this.boundary; |
84 | | -} |
| 84 | +}; |
Index: trunk/extensions/SVGEdit/modules/ext.svgedit.embedapi.js |
— | — | @@ -72,7 +72,7 @@ |
73 | 73 | //Newer, well, it extracts things that aren't documented as well. All functions accessible through the normal thingy can now be accessed though the API |
74 | 74 | //var l=[];for(var i in svgCanvas){if(typeof svgCanvas[i] == "function"){l.push(i)}}; |
75 | 75 | //run in svgedit itself |
76 | | - var functions = ["updateElementFromJson", "embedImage", "fixOperaXML", "clearSelection", "addToSelection", "removeFromSelection", "addNodeToSelection", "open", "save", "getSvgString", "setSvgString", "createLayer", "deleteCurrentLayer", "getNumLayers", "getLayer", "getCurrentLayer", "setCurrentLayer", "renameCurrentLayer", "setCurrentLayerPosition", "getLayerVisibility", "setLayerVisibility", "moveSelectedToLayer", "getLayerOpacity", "setLayerOpacity", "clear", "clearPath", "getNodePoint", "clonePathNode", "deletePathNode", "getResolution", "getImageTitle", "setImageTitle", "setResolution", "setBBoxZoom", "setZoom", "getMode", "setMode", "getStrokeColor", "setStrokeColor", "getFillColor", "setFillColor", "setStrokePaint", "setFillPaint", "getStrokeWidth", "setStrokeWidth", "getStrokeStyle", "setStrokeStyle", "getOpacity", "setOpacity", "getFillOpacity", "setFillOpacity", "getStrokeOpacity", "setStrokeOpacity", "getTransformList", "getBBox", "getRotationAngle", "setRotationAngle", "each", "bind", "setIdPrefix", "getBold", "setBold", "getItalic", "setItalic", "getFontFamily", "setFontFamily", "getFontSize", "setFontSize", "getText", "setTextContent", "setImageURL", "setRectRadius", "setSegType", "quickClone", "beginUndoableChange", "changeSelectedAttributeNoUndo", "finishUndoableChange", "changeSelectedAttribute", "deleteSelectedElements", "groupSelectedElements", "ungroupSelectedElement", "moveToTopSelectedElement", "moveToBottomSelectedElement", "moveSelectedElements", "getStrokedBBox", "getVisibleElements", "cycleElement", "getUndoStackSize", "getRedoStackSize", "getNextUndoCommandText", "getNextRedoCommandText", "undo", "redo", "cloneSelectedElements", "alignSelectedElements", "getZoom", "getVersion", "setIconSize", "setLang", "setCustomHandlers"] |
| 76 | + var functions = ["updateElementFromJson", "embedImage", "fixOperaXML", "clearSelection", "addToSelection", "removeFromSelection", "addNodeToSelection", "open", "save", "getSvgString", "setSvgString", "createLayer", "deleteCurrentLayer", "getNumLayers", "getLayer", "getCurrentLayer", "setCurrentLayer", "renameCurrentLayer", "setCurrentLayerPosition", "getLayerVisibility", "setLayerVisibility", "moveSelectedToLayer", "getLayerOpacity", "setLayerOpacity", "clear", "clearPath", "getNodePoint", "clonePathNode", "deletePathNode", "getResolution", "getImageTitle", "setImageTitle", "setResolution", "setBBoxZoom", "setZoom", "getMode", "setMode", "getStrokeColor", "setStrokeColor", "getFillColor", "setFillColor", "setStrokePaint", "setFillPaint", "getStrokeWidth", "setStrokeWidth", "getStrokeStyle", "setStrokeStyle", "getOpacity", "setOpacity", "getFillOpacity", "setFillOpacity", "getStrokeOpacity", "setStrokeOpacity", "getTransformList", "getBBox", "getRotationAngle", "setRotationAngle", "each", "bind", "setIdPrefix", "getBold", "setBold", "getItalic", "setItalic", "getFontFamily", "setFontFamily", "getFontSize", "setFontSize", "getText", "setTextContent", "setImageURL", "setRectRadius", "setSegType", "quickClone", "beginUndoableChange", "changeSelectedAttributeNoUndo", "finishUndoableChange", "changeSelectedAttribute", "deleteSelectedElements", "groupSelectedElements", "ungroupSelectedElement", "moveToTopSelectedElement", "moveToBottomSelectedElement", "moveSelectedElements", "getStrokedBBox", "getVisibleElements", "cycleElement", "getUndoStackSize", "getRedoStackSize", "getNextUndoCommandText", "getNextRedoCommandText", "undo", "redo", "cloneSelectedElements", "alignSelectedElements", "getZoom", "getVersion", "setIconSize", "setLang", "setCustomHandlers"]; |
77 | 77 | |
78 | 78 | //TODO: rewrite the following, it's pretty scary. |
79 | 79 | for(var i = 0; i < functions.length; i++){ |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | for(var g = 0, args = []; g < arguments.length; g++){ |
84 | 84 | args.push(arguments[g]); |
85 | 85 | } |
86 | | - var cbid = t.send(d,args, function(){}) //the callback (currently it's nothing, but will be set later |
| 86 | + var cbid = t.send(d,args, function(){}); //the callback (currently it's nothing, but will be set later |
87 | 87 | |
88 | 88 | return function(newcallback){ |
89 | 89 | t.callbacks[cbid] = newcallback; //set callback |
— | — | @@ -136,7 +136,7 @@ |
137 | 137 | } |
138 | 138 | return "{"+pairs.join(",")+"}" //wrap in the braces |
139 | 139 | } |
140 | | -} |
| 140 | +}; |
141 | 141 | |
142 | 142 | embedded_svg_edit.prototype.send = function(name, args, callback){ |
143 | 143 | var cbid = Math.floor(Math.random()*31776352877+993577).toString(); |
— | — | @@ -151,7 +151,7 @@ |
152 | 152 | }, 0); |
153 | 153 | return cbid; |
154 | 154 | //this.stack.shift()("svgCanvas['"+name+"']("+argstr.join(",")+")") |
155 | | -} |
| 155 | +}; |
156 | 156 | |
157 | 157 | |
158 | 158 | |