| CODENOTIFIER | HelpYou are not signed inSign in |
Project: dojo
Revision: 15131
Author: elazutkin
Date: 04 Sep 2008 20:45:50
Diff at Trac: http://trac.dojotoolkit.org/changeset/15131
Changes:Eliminating stray commas. Refs #7596. !strict
Some of the stray commas are relatively harmless (e.g., in commented out examples).
| ... | ...@@ -73,7 +73,7 @@ | |
| 73 | 73 | {name: 'Column 3'}, |
| 74 | 74 | {name: 'Column 4'}, |
| 75 | 75 | {name: 'Column 5'}, |
| 76 | {name: 'Column 6'}, | |
| 76 | {name: 'Column 6'} | |
| 77 | 77 | ]]}; |
| 78 | 78 | |
| 79 | 79 | // a grid structure is an array of views. |
| ... | ...@@ -74,7 +74,7 @@ | |
| 74 | 74 | inSubRows[1].hidden = !detailRows[inDataIndex]; |
| 75 | 75 | }, |
| 76 | 76 | cells: [[ |
| 77 | { name: '', width: 3, get: getCheck, styles: 'text-align: center;' }, { name: 'Name', get: getName, width: 40 }, | |
| 77 | { name: '', width: 3, get: getCheck, styles: 'text-align: center;' }, { name: 'Name', get: getName, width: 40 } | |
| 78 | 78 | ], [ |
| 79 | 79 | { name: '', get: getDetail, colSpan: 2, styles: 'padding: 0; margin: 0;'} |
| 80 | 80 | ]] |
| ... | ...@@ -63,7 +63,7 @@ | |
| 63 | 63 | {name: 'Column 3'}, |
| 64 | 64 | {name: 'Column 4'}, |
| 65 | 65 | {name: 'Column 5'}, |
| 66 | {name: 'Column 6'}, | |
| 66 | {name: 'Column 6'} | |
| 67 | 67 | ]]}; |
| 68 | 68 | |
| 69 | 69 | // a grid structure is an array of views. |
| ... | ...@@ -144,7 +144,7 @@ | |
| 144 | 144 | // At present only textbox, password, and textarea fields are supported. |
| 145 | 145 | dependencies: { |
| 146 | 146 | cc_exp: "cc_no", |
| 147 | cc_type: "cc_no", | |
| 147 | cc_type: "cc_no" | |
| 148 | 148 | }, |
| 149 | 149 | |
| 150 | 150 | // Fields can be validated using any boolean valued function. |
| ... | ...@@ -154,7 +154,7 @@ | |
| 154 | 154 | field_name2: dojo.validate.isInteger, |
| 155 | 155 | field_name3: [myValidationFunction, additional parameters], |
| 156 | 156 | field_name4: [dojo.validate.isValidDate, "YYYY.MM.DD"], |
| 157 | field_name5: [dojo.validate.isEmailAddress, false, true], | |
| 157 | field_name5: [dojo.validate.isEmailAddress, false, true] | |
| 158 | 158 | }, |
| 159 | 159 | |
| 160 | 160 | // Confirm is a sort of conditional validation. |
| ... | ...@@ -162,7 +162,7 @@ | |
| 162 | 162 | // If the values are not equal, the field in the property list is reported as Invalid. Unless the target field is blank. |
| 163 | 163 | confirm: { |
| 164 | 164 | email_confirm: "email", |
| 165 | pw2: "pw1", | |
| 165 | pw2: "pw1" | |
| 166 | 166 | } |
| 167 | 167 | }; |
| 168 | 168 |
| ... | ...@@ -31,7 +31,7 @@ | |
| 31 | 31 | var t = m.normalize([ |
| 32 | 32 | m.cameraRotateXg(angles.x), |
| 33 | 33 | m.cameraRotateYg(angles.y), |
| 34 | m.cameraRotateZg(angles.z), | |
| 34 | m.cameraRotateZg(angles.z) | |
| 35 | 35 | ]); |
| 36 | 36 | cube.setTransform(t); |
| 37 | 37 | cube.invalidate(); |
| ... | ...@@ -80,7 +80,7 @@ | |
| 80 | 80 | {name: 'Column 3'}, |
| 81 | 81 | {name: 'Column 4'}, |
| 82 | 82 | {name: 'Column 5'}, |
| 83 | {name: 'Column 6'}, | |
| 83 | {name: 'Column 6'} | |
| 84 | 84 | ]]}; |
| 85 | 85 | |
| 86 | 86 | // a grid structure is an array of views. |
| ... | ...@@ -58,7 +58,7 @@ | |
| 58 | 58 | {name: 'Kiwi', get: get}, |
| 59 | 59 | {name: 'Orange', value: '<img src="images/flatScreen.gif" height="48" width="48">'}, |
| 60 | 60 | {name: 'Pear', get: get}, |
| 61 | {name: 'Tomato', width: 20, value: '<input name="" type="file">'}, | |
| 61 | {name: 'Tomato', width: 20, value: '<input name="" type="file">'} | |
| 62 | 62 | ]]}; |
| 63 | 63 | |
| 64 | 64 | var view2 = { |
| ... | ...@@ -82,7 +82,7 @@ | |
| 82 | 82 | {name: 'Apple', value: '<button>Apple</button>', rowSpan: 3}, |
| 83 | 83 | {name: 'Banana', get: get, width: 20}, |
| 84 | 84 | {name: 'Kiwi', get: get, width: 20}, |
| 85 | {name: 'Pear', get: get, width: 20}, | |
| 85 | {name: 'Pear', get: get, width: 20} | |
| 86 | 86 | ], |
| 87 | 87 | [ |
| 88 | 88 | {name: 'Beans', value: 'Happy to be grid!'}, |
| ... | ...@@ -94,7 +94,7 @@ | |
| 94 | 94 | {name: 'Column 5', field: 'col5', cellClasses: 'yellowColumnData', classes: 'yellowColumn', styles: 'text-align: center;' }, |
| 95 | 95 | {name: 'Column 6', field: 'col6', headerStyles: 'background-image: none; background-color: #003333;', classes: 'greenColumn'}, |
| 96 | 96 | {name: 'Column 7', field: 'col7'}, |
| 97 | {name: 'Column 8', field: 'col8'}, | |
| 97 | {name: 'Column 8', field: 'col8'} | |
| 98 | 98 | ] |
| 99 | 99 | ]; |
| 100 | 100 |
| ... | ...@@ -62,7 +62,7 @@ | |
| 62 | 62 | m.cameraTranslate(-300, -200, 0), |
| 63 | 63 | m.cameraRotateXg(angles.x), |
| 64 | 64 | m.cameraRotateYg(angles.y), |
| 65 | m.cameraRotateZg(angles.z), | |
| 65 | m.cameraRotateZg(angles.z) | |
| 66 | 66 | ]); |
| 67 | 67 | |
| 68 | 68 | view.applyCameraTransform(camera); |
| ... | ...@@ -76,7 +76,7 @@ | |
| 76 | 76 | inSubRows[1].hidden = !detailRows[inDataIndex]; |
| 77 | 77 | }, |
| 78 | 78 | cells: [[ |
| 79 | { name: '', width: 3, get: getCheck, styles: 'text-align: center;' }, { name: 'Name', get: getName, width: 40 }, | |
| 79 | { name: '', width: 3, get: getCheck, styles: 'text-align: center;' }, { name: 'Name', get: getName, width: 40 } | |
| 80 | 80 | ], [ |
| 81 | 81 | { name: '', get: getDetail, colSpan: 2, styles: 'padding: 0; margin: 0;'} |
| 82 | 82 | ]] |
| ... | ...@@ -200,8 +200,7 @@ | |
| 200 | 200 | var success = '["reference","fiction","fiction","fiction"]'; |
| 201 | 201 | doh.assertEqual(success,result); |
| 202 | 202 | } |
| 203 | }, | |
| 204 | ||
| 203 | } | |
| 205 | 204 | ] |
| 206 | 205 | ); |
| 207 | 206 |
| ... | ...@@ -14,10 +14,10 @@ | |
| 14 | 14 | this.delay = (params && params.delay > 0) ? params.delay : 0; |
| 15 | 15 | this.mover = (params && params.mover) ? params.mover : dojox.gfx.Mover; |
| 16 | 16 | this.events = [ |
| 17 | this.shape.connect("onmousedown", this, "onMouseDown"), | |
| 17 | this.shape.connect("onmousedown", this, "onMouseDown") | |
| 18 | 18 | // cancel text selection and text dragging |
| 19 | //dojo.connect(this.handle, "ondragstart", dojo, "stopEvent"), | |
| 20 | //dojo.connect(this.handle, "onselectstart", dojo, "stopEvent") | |
| 19 | //, dojo.connect(this.handle, "ondragstart", dojo, "stopEvent") | |
| 20 | //, dojo.connect(this.handle, "onselectstart", dojo, "stopEvent") | |
| 21 | 21 | ]; |
| 22 | 22 | }, |
| 23 | 23 |
| ... | ...@@ -116,7 +116,7 @@ | |
| 116 | 116 | {value: 2, text: "Febuary"}, |
| 117 | 117 | {value: 3, text: "March"}, |
| 118 | 118 | {value: 4, text: "April"}, |
| 119 | {value: 5, text: "May"}, | |
| 119 | {value: 5, text: "May"} | |
| 120 | 120 | ] |
| 121 | 121 | }); |
| 122 | 122 | chart4.addPlot("default", { type: "Bars", gap: 3 }); |
| ... | ...@@ -124,7 +124,7 @@ | |
| 124 | 124 | "Series A", |
| 125 | 125 | [ 1, 6, 9, 4, 5, 2 ], |
| 126 | 126 | { |
| 127 | stroke: { width: 0, }, | |
| 127 | stroke: {width: 0}, | |
| 128 | 128 | // fill: "#ffcc2d", |
| 129 | 129 | fill: { |
| 130 | 130 | type: "linear", |
| ... | ...@@ -962,7 +962,7 @@ | |
| 962 | 962 | this.todos[x].render(dojox.gfx3d.matrix.normalize([ |
| 963 | 963 | m.cameraRotateXg(180), |
| 964 | 964 | m.cameraTranslate(0, this.dimension.height, 0), |
| 965 | this.camera, | |
| 965 | this.camera | |
| 966 | 966 | ]), this.deep); |
| 967 | 967 | } |
| 968 | 968 |
| ... | ...@@ -66,7 +66,7 @@ | |
| 66 | 66 | m.cameraTranslate(-300, -200, 0), |
| 67 | 67 | m.cameraRotateXg(angles.x), |
| 68 | 68 | m.cameraRotateYg(angles.y), |
| 69 | m.cameraRotateZg(angles.z), | |
| 69 | m.cameraRotateZg(angles.z) | |
| 70 | 70 | ]); |
| 71 | 71 | |
| 72 | 72 | view.applyCameraTransform(camera); |
| ... | ...@@ -54,7 +54,7 @@ | |
| 54 | 54 | {name: 'Kiwi', get: get}, |
| 55 | 55 | {name: 'Orange', value: '<img src="images/flatScreen.gif" height="48" width="48">'}, |
| 56 | 56 | {name: 'Pear', get: get}, |
| 57 | {name: 'Tomato', width: 20, value: '<input name="" type="file">'}, | |
| 57 | {name: 'Tomato', width: 20, value: '<input name="" type="file">'} | |
| 58 | 58 | ]; |
| 59 | 59 | |
| 60 | 60 | var view2 = { |
| ... | ...@@ -76,7 +76,7 @@ | |
| 76 | 76 | {name: 'Apple', value: '<button>Apple</button>', rowSpan: 3}, |
| 77 | 77 | {name: 'Banana', get: get, width: 20}, |
| 78 | 78 | {name: 'Kiwi', get: get, width: 20}, |
| 79 | {name: 'Pear', get: get, width: 20}, | |
| 79 | {name: 'Pear', get: get, width: 20} | |
| 80 | 80 | ],[ |
| 81 | 81 | {name: 'Beans', value: 'Happy to be grid!'}, |
| 82 | 82 | {name: 'Orange', value: '<img src="images/flatScreen.gif" height="48" width="48">'}, |
| ... | ...@@ -220,12 +220,8 @@ | |
| 220 | 220 | runTest: dojox.rpc.tests._testMethod({ |
| 221 | 221 | name: "postalCodeSearch", |
| 222 | 222 | parameters:{placename: "blacksburg"}, |
| 223 | expectedResult: dojo.toJson({}), | |
| 223 | expectedResult: dojo.toJson({}) | |
| 224 | 224 | }) |
| 225 | }, | |
| 226 | ||
| 227 | ||
| 228 | ||
| 229 | ||
| 225 | } | |
| 230 | 226 | ] |
| 231 | 227 | ); |
| ... | ...@@ -24,7 +24,7 @@ | |
| 24 | 24 | function docWrite(t){ |
| 25 | 25 | dojox.secure.evaluate("document.write(\"<div style='color:red'>written</div>\");",container); |
| 26 | 26 | t.t(container.innerHTML.match(/written/)); |
| 27 | }, | |
| 27 | } | |
| 28 | 28 | ]); |
| 29 | 29 | |
| 30 | 30 | function violater(func) { |
| ... | ...@@ -96,7 +96,7 @@ | |
| 96 | 96 | {name: 'Column 4', cellClasses: 'yellowColumnData', classes: 'yellowColumn', styles: 'text-align: center;' }, |
| 97 | 97 | {name: 'Column 5', headerStyles: 'background-image: none; background-color: #003333;', classes: 'greenColumn'}, |
| 98 | 98 | {name: 'Column 6'}, |
| 99 | {name: 'Column 7'}, | |
| 99 | {name: 'Column 7'} | |
| 100 | 100 | ]]}; |
| 101 | 101 | |
| 102 | 102 | // a grid structure is an array of views. |
| ... | ...@@ -51,7 +51,7 @@ | |
| 51 | 51 | // view 2 |
| 52 | 52 | { cells: [[ |
| 53 | 53 | { field: "name", name: "Name", width: 'auto' }, |
| 54 | { field: "type", name: "Type", editor: iEditor, width: 'auto' }, | |
| 54 | { field: "type", name: "Type", editor: iEditor, width: 'auto' } | |
| 55 | 55 | ]]} |
| 56 | 56 | ]; |
| 57 | 57 | </script> |
| ... | ...@@ -720,7 +720,7 @@ | |
| 720 | 720 | items: [ |
| 721 | 721 | { |
| 722 | 722 | action: "eat", |
| 723 | type: "apple", | |
| 723 | type: "apple" | |
| 724 | 724 | }, |
| 725 | 725 | { |
| 726 | 726 | action: "mash", |
| ... | ...@@ -32,7 +32,7 @@ | |
| 32 | 32 | begin: '\\bclass ', end: ':', |
| 33 | 33 | illegal: '[${]', |
| 34 | 34 | keywords: {'class': 1}, |
| 35 | contains: ['title', 'params',], | |
| 35 | contains: ['title', 'params'], | |
| 36 | 36 | relevance: 10 |
| 37 | 37 | }, |
| 38 | 38 | { |