Merge lp:~bac/launchpad/bug-561586 into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Edwin Grubbs | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 10830 | ||||
Proposed branch: | lp:~bac/launchpad/bug-561586 | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
371 lines (+53/-51) 17 files modified
lib/lp/code/javascript/tests/test_productseries-setbranch.html (+1/-1) lib/lp/registry/browser/__init__.py (+5/-4) lib/lp/registry/browser/tests/productrelease-views.txt (+1/-1) lib/lp/registry/browser/tests/productseries-views.txt (+3/-3) lib/lp/registry/javascript/milestoneoverlay.js (+4/-4) lib/lp/registry/javascript/milestonetable.js (+4/-5) lib/lp/registry/javascript/team.js (+2/-2) lib/lp/registry/javascript/tests/test_milestone_table.html (+6/-6) lib/lp/registry/javascript/tests/test_milestone_table.js (+4/-4) lib/lp/registry/javascript/tests/timeline-iframe.html (+4/-4) lib/lp/registry/javascript/tests/timeline.js (+6/-6) lib/lp/registry/javascript/timeline.js (+2/-2) lib/lp/registry/templates/object-timeline-graph.pt (+2/-2) lib/lp/registry/templates/productrelease-add-from-series.pt (+2/-2) lib/lp/registry/templates/team-portlet-membership.pt (+2/-2) lib/lp/registry/windmill/tests/test_yuitests.py (+1/-1) utilities/lp-deps.py (+4/-2) |
||||
To merge this branch: | bzr merge lp:~bac/launchpad/bug-561586 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Edwin Grubbs (community) | Approve | ||
Review via email: mp+24355@code.launchpad.net |
Commit message
Move registry javascript to lp/registry/
Description of the change
= Summary =
Move registry javascript to (surprise!) lp/registry/
== Proposed fix ==
Make the move and then fix up all of the paths.
== Pre-implementation notes ==
None.
== Implementation details ==
As above.
== Tests ==
bin/test -vvm lp.registry -t test_yuitests
== Demo and Q/A ==
Check out milestone and timelines and ensure the JS isn't broken.
= Launchpad lint =
Hmmm, I'm certainly not responsible for any of these lint issues but
will have a look at the ones that seem reasonable.
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files:
lib/lp/
utilities/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
== JSLint notices ==
No handlers could be found for logger "bzr"
jslint: Lint found in
'/home/
Line 16 character 11: Parens are not needed here.
if(typeof (MochiKit.
(MochiKit.
(MochiKit.
Line 16 character 48: Parens are not needed here.
if(typeof (MochiKit.
(MochiKit.
(MochiKit.
Line 16 character 84: Parens are not needed here.
if(typeof (MochiKit.
(MochiKit.
(MochiKit.
Line 16 character 122: Parens are not needed here.
if(typeof (MochiKit.
(MochiKit.
(MochiKit.
Line 41 character 11: Parens are not needed here.
if(typeof (PlotKit.
Line 54 character 16: Parens are not needed here.
return (typeof (Object.
Line 66 character 12: Use the array literal notation [].
var _8=new Array();
Line 79 character 12: Use the array literal notation [].
return new Array();
Line 81 character 13: Use the array literal notation [].
var _11=new Array();
Line 85 character 25: Use '!==' to compare with '0'.
if(m.compare(
Line 110 character 13: Use the array literal notation [].
var _26=new Array();
Line 167 character 11: Parens are not needed here.
if(typeof (lst[x]
Line 166 character 1: The body of a for in should be wrapped in an if
statement to filter unwanted properties from the prototype.
for(var x in lst){
Line 181 character 11: Parens are not needed here.
if(typeof (lst[x]
Line 180 character 1: The body of a for in should be wrapped in an if
statement to filter unwanted properties from the prototype.
for(var x in lst){
Line 195 character 11: Parens are not needed here.
if(typeof (lst[x]
Line 194 character 1: The body of a for in should be wrapped in an if
statement to filter unwanted properties from the prototype.
for(var x in lst){
Line 249 character 11: Parens are not needed here.
if(typeof (PlotKit.
Line 253 character 7: 'e' is already defined.
catch(e){
Line 256 character 11: Parens are not needed here.
if(typeof (PlotKit.
Line 290 character 15: Use the array literal notation [].
this.bars=new Array();
Line 291 character 17: Use the array literal notation [].
this.points=new Array();
Line 292 character 17: Use the array literal notation [].
this.slices=new Array();
Line 293 character 17: Use the array literal notation [].
this.xticks=new Array();
Line 294 character 17: Use the array literal notation [].
this.yticks=new Array();
Line 295 character 19: Use the array literal notation [].
this.datasets=new Array();
Line 321 character 13: Use the array literal notation [].
var _57=new Array();
Line 322 character 13: Use the array literal notation [].
var _58=new Array();
Line 371 character 28: Use '===' to compare with 'null'.
if(this.
Line 378 character 10: 'i' is already defined.
for(var i=1;i<_
Line 385 character 8: Use '!==' to compare with 'null'.
if((_64!=null)){
Line 403 character 10: 'i' is already defined.
for(var i=0;i<this.
Line 457 character 15: Use '===' to compare with '0'.
if(this.xrange==0){
Line 463 character 15: Use '===' to compare with '0'.
if(this.yrange==0){
Line 512 character 15: Use the array literal notation [].
this.bars=new Array();
Line 513 character 6: 'i' is already defined.
var i=0;
Line 514 character 1: The body of a for in should be wrapped in an if
statement to filter unwanted properties from the prototype.
for(var _95 in this.datasets){
Line 554 character 15: Use the array literal notation [].
this.bars=new Array();
Line 555 character 6: 'i' is already defined.
var i=0;
Line 556 character 1: The body of a for in should be wrapped in an if
statement to filter unwanted properties from the prototype.
for(var _107 in this.datasets){
Line 580 character 17: Use the array literal notation [].
this.points=new Array();
Line 589 character 2: Be careful when making functions within a loop.
Consider putting the function in a closure.
});
Line 582 character 1: The body of a for in should be wrapped in an if
statement to filter unwanted properties from the prototype.
for(var _113 in this.datasets){
Line 613 character 17: Use the array literal notation [].
this.slices=new Array();
Line 620 character 14: Use '!==' to compare with '0'.
if(_122[i][1]!=0){
Line 629 character 17: Use the array literal notation [].
this.xticks=new Array();
Line 646 character 17: Use the array literal notation [].
this.xticks=new Array();
Line 666 character 17: Use the array literal notation [].
this.yticks=new Array();
Line 680 character 17: Use the array literal notation [].
this.yticks=new Array();
Line 718 character 17: Use the array literal notation [].
this.xticks=new Array();
Line 718 character 17: Too many errors. (32% scanned).
jslint: Lint found in
'/home/
Line 21 character 15: Parens are not needed here.
if (typeof(
Line 22 character 15: Parens are not needed here.
Line 23 character 15: Parens are not needed here.
Line 24 character 15: Parens are not needed here.
Line 30 character 62: Missing semicolon.
throw "PlotKit depends on MochiKit.
Line 68 character 2: Missing semicolon.
}
Line 74 character 11: Parens are not needed here.
if (typeof(
Line 87 character 2: Missing semicolon.
}
Line 93 character 23: Parens are not needed here.
return (typeof(
Line 98 character 2: Missing semicolon.
}
Line 111 character 30: Use the array literal notation [].
var biggerList = new Array();
Line 128 character 66: Line breaking error ')'.
if (!m.isArrayLike
Line 129 character 13: Expected '{' and instead saw 'return'.
return new Array();
Line 129 character 24: Use the array literal notation [].
return new Array();
Line 131 character 24: Use the array literal notation [].
var uniq = new Array();
Line 135 character 52: Use '!==' to compare with '0'.
if (m.compare(
Line 145 character 27: Line breaking error 'Color'.
var mc = MochiKit.Color
Line 145 character 32: Missing semicolon.
var mc = MochiKit.Color
Line 149 character 46: Missing semicolon.
return mc.Color[name + "Color"]()
Line 180 character 29: Use the array literal notation [].
var fractions = new Array();
Line 181 character 29: Line breaking error ')'.
if (isNil(increment))
Line 182 character 13: Expected '{' and instead saw 'increment'.
Line 183 character 27: Line breaking error ')'.
if (isNil(toLevel))
Line 184 character 13: Expected '{' and instead saw 'toLevel'.
toLevel = 0.4;
Line 185 character 29: Line breaking error ')'.
if (isNil(fromLevel))
Line 186 character 13: Expected '{' and instead saw 'fromLevel'.
Line 214 character 36: Line breaking error 'offsetLeft'.
Line 214 character 46: Missing semicolon.
Line 218 character 23: Line breaking error ')'.
else if (obj.x)
Line 219 character 13: Expected '{' and instead saw 'curleft'.
curleft += obj.x;
Line 227 character 30: Line breaking error 'offsetTop'.
Line 227 character 39: Missing semicolon.
Line 231 character 22: Line breaking error ')'.
else if (obj.y)
Line 232 character 12: Expected '{' and instead saw 'curtop'.
curtop += obj.y;
Line 249 character 23: Parens are not needed here.
if (typeof(lst[x]) == 'function') continue;
Line 249 character 47: Expected '{' and instead saw 'continue'.
if (typeof(lst[x]) == 'function') continue;
Line 248 character 9: The body of a for in should be wrapped in an if
statement to filter unwanted properties from the prototype.
for (var x in lst) {
Line 263 character 24: Parens are not needed here.
if (typeof(lst[x]) == 'function') continue;
Line 263 character 48: Expected '{' and instead saw 'continue'.
if (typeof(lst[x]) == 'function') continue;
Line 262 character 10: The body of a for in should be wrapped in an if
statement to filter unwanted properties from the prototype.
for (var x in lst) {
Line 277 character 24: Parens are not needed here.
if (typeof(lst[x]) == 'function') continue;
Line 277 character 48: Expected '{' and instead saw 'continue'.
if (typeof(lst[x]) == 'function') continue;
Line 276 character 10: The body of a for in should be wrapped in an if
statement to filter unwanted properties from the prototype.
for (var x in lst) {
jslint: Lint found in
'/home/
Line 26 character 16: Parens are not needed here.
if ((typeof(
Line 27 character 16: Parens are not needed here.
Line 33 character 95: Missing semicolon.
throw "PlotKit.Layout depends on MochiKit.
and PlotKit.
Line 41 character 11: Parens are not needed here.
if (typeof(
Line 54 character 2: Missing semicolon.
}
Line 57 character 30: Line breaking error ')'.
if (arguments.length > 0)
Line 58 character 9: Expected '{' and instead saw 'this'.
Line 110 character 28: Line breaking error ')'.
if (isNil(
Line 111 character 9: Expected '{' and instead saw 'throw'.
throw "CanvasRenderer() - passed canvas is not found";
Line 113 character 24: Parens are not needed here.
if (!this.isIE && !(PlotKit.
Line 113 character 74: Line breaking error ')'.
if (!this.isIE && !(PlotKit.
Line 114 character 9: Expected '{' and instead saw 'throw'.
throw "CanvasRenderer() - Canvas is not supported.";
Line 116 character 82: Line breaking error ')'.
if (isNil(
!= "div"))
Line 117 character 9: Expected '{' and instead saw 'throw'.
throw "CanvasRenderer() - <canvas> needs to be enclosed in <div>";
Line 120 character 24: Use the array literal notation [].
this.xlabels = new Array();
Line 121 character 24: Use the array literal notation [].
this.ylabels = new Array();
Line 168 character 36: Line breaking error ')'.
if (this.options.
Line 169 character 9: Expected '{' and instead saw 'this'.
Line 197 character 37: Line breaking error ')'.
if (this.options.
Line 198 character 13: Expected '{' and instead saw 'context'.
Line 199 character 51: Line breaking error ')'.
else if (this.options.
Line 200 character 13: Expected '{' and instead saw 'context'.
color[this.
Line 204 character 36: Line breaking error ')'.
if (obj.name == setName)
Line 205 character 17: Expected '{' and instead saw 'plotFunc'.
Line 206 character 10: Be careful when making functions within a loop.
Consider putting the function in a closure.
};
Line 221 character 31: Line breaking error ')'.
if ((w < 1) || (h < 1))
Line 222 character 13: Expected '{' and instead saw 'return'.
return;
Line 223 character 36: Line breaking error ')'.
if (this.options.
Line 224 character 13: Expected '{' and instead saw 'context'.
Line 225 character 38: Line breaking error ')'.
if (this.options.
Line 226 character 13: Expected '{' and instead saw 'context'.
Line 248 character 37: Line breaking error ')'.
if (this.options.
Line 249 character 13: Expected '{' and instead saw 'context'.
Line 250 character 51: Line breaking error ')'.
else if (this.options.
Line 251 character 13: Expected '{' and instead saw 'context'.
Line 260 character 42: Line breaking error ')'.
if (point.name == setName)
Line 261 character 21: Expected '{' and instead saw 'ctx_'.
Line 269 character 10: Be careful when making functions within a loop.
Consider putting the function in a closure.
};
Line 295 character 19: Missing radix parameter.
centerx = parseInt(centerx);
Line 296 character 19: Missing radix parameter.
centery = parseInt(centery);
Line 297 character 18: Missing radix parameter.
radius = parseInt(radius);
Line 318 character 10: Be careful when making functions within a loop.
Consider putting the function in a closure.
};
Line 329 character 45: Line breaking error ')'.
if (this.options.
Line 330 character 21: Expected '{' and instead saw 'context'.
this.options.
Line 331 character 59: Line breaking error ')'.
Line 332 character 21: Expected '{' and instead saw 'context'.
color[this.
Line 342 character 2: Missing semicolon.
}
Line 350 character 59: Line breaking error ')'.
if (!this.
Line 351 character 9: Expected '{' and instead saw 'return'.
return;
Line 374 character 49: Expected '{' and instead saw 'return'.
if (typeof(tick) == "function") return;
Line 374 character 49: Too many errors. (54% scanned).
jslint: Lint found in
'/home/
Line 16 character 15: Parens are not needed here.
if (typeof(
Line 18 character 15: Missing semicolon.
throw ""
Line 29 character 11: Parens are not needed here.
if (typeof(
Line 42 character 2: Missing semicolon.
}
Line 51 character 18: Missing radix parameter.
this.width = parseInt(
Line 52 character 19: Missing radix parameter.
this.height = parseInt(
Line 67 character 23: Parens are not needed here.
if (typeof(
Line 101 character 29: Use '===' to compare with '0'.
if ((this.
(PlotKit.
Line 112 character 21: Use the array literal notation [].
var table = new Array();
Line 124 character 29: Use '===' to compare with '0'.
if ((this.
(PlotKit.
jslint: Lint found in
'/home/
Line 18 character 15: Parens are not needed here.
if (typeof(
Line 20 character 15: Missing semicolon.
throw ""
Line 24 character 86: Missing semicolon.
throw "PlotKit.Layout depends on MochiKit.
and PlotKit.Base"
Line 31 character 11: Parens are not needed here.
if (typeof(
Line 44 character 2: Missing semicolon.
}
Line 98 character 21: Use the array literal notation [].
this.bars = new Array(); // array of bars to plot for bar charts
Line 99 character 23: Use the array literal notation [].
this.points = new Array(); // array of points to plot for line plots
Line 100 character 23: Use the array literal notation [].
this.slices = new Array(); // array of slices to draw for pie charts
Line 102 character 23: Use the array literal notation [].
this.xticks = new Array();
Line 103 character 23: Use the array literal notation [].
this.yticks = new Array();
Line 106 character 25: Use the array literal notation [].
this.datasets = new Array();
Line 133 character 20: Line breaking error ')'.
if (isNil(xcol))
Line 134 character 9: Expected '{' and instead saw 'xcol'.
xcol = 0;
Line 135 character 20: Line breaking error ')'.
if (isNil(ycol))
Line 136 character 9: Expected '{' and instead saw 'ycol'.
ycol = 1;
Line 137 character 20: Line breaking error ')'.
if (isNil(lcol))
Line 138 character 9: Expected '{' and instead saw 'lcol'.
lcol = -1;
Line 141 character 20: Use the array literal notation [].
var data = new Array();
Line 142 character 22: Use the array literal notation [].
var labels = new Array();
Line 201 character 52: Line breaking error ')'.
if ((x >= bar.x) && (x <= bar.x + bar.w)
Line 202 character 56: Line breaking error ')'.
&& (y >= bar.y) && (y - bar.y <= bar.h))
Line 203 character 17: Expected '{' and instead saw 'return'.
Line 208 character 38: Use '===' to compare with 'null'.
if (this.hitTestCa
Line 218 character 20: 'i' is already defined.
for (var i = 1; i < xvalues.length; i++) {
Line 226 character 22: Use '!==' to compare with 'null'.
if ((xbefore != null)) {
Line 248 character 42: Line breaking error ')'.
if (dist > this.options.
Line 249 character 13: Expected '{' and instead saw 'return'.
return null;
Line 254 character 20: 'i' is already defined.
for (var i = 0; i < this.slices.length; i++) {
Line 256 character 68: Line breaking error ')'.
if (slice.startAngle < angle && slice.endAngle >= angle)
Line 257 character 17: Expected '{' and instead saw 'return'.
Line 291 character 39: Line breaking error ')'.
if (this.options.
Line 292 character 13: Expected '{' and instead saw 'this'.
Line 294 character 13: Expected '{' and instead saw 'this'.
all)));
Line 305 character 39: Line breaking error ')'.
if (this.options.
Line 306 character 13: Expected '{' and instead saw 'this'.
Line 308 character 13: Expected '{' and instead saw 'this'.
all)));
Line 324 character 21: Use '===' to compare with '0'.
if (this.xrange == 0)
Line 324 character 25: Line breaking error ')'.
if (this.xrange == 0)
Line 325 character 9: Expected '{' and instead saw 'this'.
this.xscale = 1.0;
Line 327 character 9: Expected '{' and instead saw 'this'.
this.xscale = 1/this.xrange;
Line 330 character 21: Use '===' to compare with '0'.
if (this.yrange == 0)
Line 330 character 25: Line breaking error ')'.
if (this.yrange == 0)
Line 331 character 9: Expected '{' and instead saw 'this'.
this.yscale = 1.0;
Line 333 character 9: Expected '{' and instead saw 'this'.
this.yscale = 1/this.yrange;
Line 392 character 21: Use the array literal notation [].
this.bars = new Array();
Line 393 character 11: 'i' is already defined.
var i = 0;
Line 396 character 47: Expected '{' and instead saw 'continue'.
if (PlotKit.
Line 394 character 5: The body of a for in should be wrapped in an if
statement to filter unwanted properties from the prototype.
for (var setName in this.datasets) {
Line 455 character 21: Use the array literal notation [].
this.bars = new Array();
Line 456 character 11: 'i' is already defined.
var i = 0;
Line 456 character 11: Too many errors. (59% scanned).
jslint: Lint found in
'/home/
Line 18 character 11: Parens are not needed here.
if (typeof(
Line 68 character 13: The body of a for in should be wrapped in an if
statement to filter unwanted properties from the prototype.
for (k in m.EXPORT_TAGS) {
Line 87 character 15: Parens are not needed here.
if (typeof(
Line 118 character 20: 'i' is already defined.
for (var i = 0; i < modules.length; i++) {
Line 147 character 17: document.write can be a form of eval.
Line 150 character 10: Unnecessary semicolon.
};
jslint: Lint found in
'/home/
Line 24 character 15: Parens are not needed here.
if (typeof(
Line 30 character 81: Missing semicolon.
throw "PlotKit depends on MochiKit.
PlotKit.Layout"
Line 39 character 29: Line breaking error ')'.
if (arguments.length > 0)
Line 40 character 9: Expected '{' and instead saw 'this'.
Line 52 character 2: Missing semicolon.
}
Line 88 character 19: Missing radix parameter.
this.height = parseInt(
Line 89 character 18: Missing radix parameter.
this.width = parseInt(
Line 104 character 28: Line breaking error ')'.
if (isNil(
Line 105 character 9: Expected '{' and instead saw 'throw'.
throw "SVGRenderer() - passed SVG object is not found";
Line 107 character 80: Line breaking error ')'.
if (isNil(
!= "div")
Line 108 character 9: Expected '{' and instead saw 'throw'.
throw "SVGRenderer() - No DIV's around the SVG.";
Line 111 character 24: Use the array literal notation [].
this.xlabels = new Array();
Line 112 character 24: Use the array literal notation [].
this.ylabels = new Array();
Line 132 character 36: Line breaking error ')'.
if (this.options.
Line 133 character 9: Expected '{' and instead saw 'this'.
Line 158 character 25: Use the array literal notation [].
var attrs = new Array();
Line 161 character 36: Line breaking error ')'.
if (this.options.
Line 162 character 13: Expected '{' and instead saw 'attrs'.
Line 162 character 19: ['fill'] is better written in dot notation.
Line 164 character 13: Expected '{' and instead saw 'attrs'.
Line 164 character 19: ['fill'] is better written in dot notation.
Line 168 character 41: Line breaking error ')'.
if (this.options.
Line 169 character 17: Expected '{' and instead saw 'attrs'.
Line 169 character 23: ['stroke'] is better written in dot notation.
Line 170 character 55: Line breaking error ')'.
else if (this.options.
Line 171 character 17: Expected '{' and instead saw 'attrs'.
color[this.
Line 171 character 23: ['stroke'] is better written in dot notation.
color[this.
Line 172 character 19: ['strokeWidth'] is better written in dot notation.
Line 175 character 22: Line breaking error ')'.
if (startFunc)
Line 176 character 13: Expected '{' and instead saw 'startFunc'.
Line 179 character 36: Line breaking error ')'.
if (obj.name == setName)
Line 180 character 17: Expected '{' and instead saw 'plotFunc'.
Line 181 character 10: Be careful when making functions within a loop.
Consider putting the function in a closure.
};
Line 184 character 20: Line breaking error ')'.
if (endFunc)
Line 185 character 13: Expected '{' and instead saw 'endFunc'.
Line 212 character 35: Parens are not needed here.
(this.area.
Line 217 character 15: ['points'] is better written in dot notation.
Line 245 character 36: Line breaking error ')'.
if (this.options.
Line 246 character 13: Expected '{' and instead saw 'attrs'.
Line 246 character 19: ['fill'] is better written in dot notation.
Line 248 character 13: Expected '{' and instead saw 'attrs'.
Line 248 character 19: ['fill'] is better written in dot notation.
Line 252 character 41: Line breaking error ')'.
if (this.options.
Line 253 character 17: Expected '{' and instead saw 'attrs'.
Line 253 character 23: ['stroke'] is better written in dot notation.
Line 254 character 55: Line breaking error ')'.
else if (this.options.
Line 255 character 17: Expected '{' and instead saw 'attrs'.
color[this.
Line 255 character 23: ['stroke'] is better written in dot notation.
color[this.
Line 256 character 19: ['style'] is better written in dot notation.
Line 264 character 19: 'attrs' is already defined.
var attrs = new Array();
Line 264 character 19: Too many errors. (37% scanned).
jslint: Lint found in
'/home/
Line 18 character 15: Parens are not needed here.
if (typeof(
Line 24 character 95: Missing semicolon.
throw "SweetCanvas depends on MochiKit.
PlotKit.{Layout, Canvas}"
Line 28 character 11: Parens are not needed here.
if (typeof(
Line 89 character 36: Line breaking error ')'.
if (name == setNames[i])
Line 90 character 17: Expected '{' and instead saw 'return'.
Line 101 character 31: Line breaking error ')'.
if ((w < 1) || (h < 1))
Line 102 character 13: Expected '{' and instead saw 'return'.
return;
Line 160 character 38: Line breaking error ')'.
if (point.name == setName)
Line 161 character 17: Expected '{' and instead saw 'ctx_'.
Line 169 character 10: Be careful when making functions within a loop.
Consider putting the function in a closure.
};
Line 218 character 19: Missing radix parameter.
centerx = parseInt(centerx);
Line 219 character 19: Missing radix parameter.
centery = parseInt(centery);
Line 220 character 18: Missing radix parameter.
radius = parseInt(radius);
Line 257 character 10: Be careful when making functions within a loop.
Consider putting the function in a closure.
};
Line 325 character 25: Missing semicolon.
PlotKit.SweetCanvas = {}
jslint: Lint found in
'/home/
Line 19 character 15: Parens are not needed here.
if (typeof(
Line 25 character 89: Missing semicolon.
throw "SweetSVG depends on MochiKit.
PlotKit.{Layout, SVG}"
Line 29 character 11: Parens are not needed here.
if (typeof(
Line 106 character 31: Line breaking error ')'.
if ((w < 1) || (h < 1))
Line 107 character 13: Expected '{' and instead saw 'return'.
return;
Line 110 character 15: ['style'] is better written in dot notation.
Line 131 character 35: Parens are not needed here.
(this.area.
Line 136 character 15: ['points'] is better written in dot notation.
Line 138 character 15: ['stroke'] is better written in dot notation.
Line 139 character 15: ['transform'] is better written in dot notation.
Line 140 character 15: ['style'] is better written in dot notation.
Line 144 character 15: ['transform'] is better written in dot notation.
Line 145 character 15: ['style'] is better written in dot notation.
Line 225 character 22: Missing semicolon.
PlotKit.SweetSVG = {}
jslint: Lint found in
'/home/
Line 49 character 29: ['g_vml_'] is better written in dot notation.
if (!doc.namespace
Line 106 character 29: Missing semicolon.
return this.context_ = new CanvasRendering
Line 106 character 30: Expected an identifier and instead saw '='.
return this.context_ = new CanvasRendering
Line 106 character 30: Stopping, unable to continue. (14% scanned).
jslint: Lint found in
'/home/
Line 21 character 50: Expected '{' and instead saw 'this'.
if (this.transport
this.transport.
Line 28 character 32: Line breaking error ')'.
if (this.onComplete)
Line 29 character 17: Expected '{' and instead saw 'setTimeout'.
setTimeout(
Line 30 character 28: Line breaking error ')'.
if (this.update)
Line 31 character 17: Expected '{' and instead saw 'setTimeout'.
setTimeout(
this.transport.
Line 37 character 35: Expected '{' and instead saw 'return'.
if (window.
Line 38 character 41: Expected '{' and instead saw 'return'.
else if (window.
Line 39 character 14: Expected '{' and instead saw 'return'.
else return false;
jslint: No problem found in
'/home/
jslint: No problem found in
'/home/
jslint: 13 files to lint.
== Pyflakes notices ==
utilities/
15: 'sys' imported but unused
== Pylint notices ==
utilities/
15: [W0611] Unused import sys
Edwin based on your suggestion on IRC I have also updated the registry javascript to be 'lp.registry'. I also fixed one lint issue and a problem with the code test not looking for lp.js in the right place.
Incremental at http:// pastebin. ubuntu. com/424191/