Clean up port comments.

This commit is contained in:
Jürg Lehni 2011-04-26 17:47:30 +01:00
parent ac5dca4fc0
commit 77ad25ffba
3 changed files with 5 additions and 5 deletions

View file

@ -141,13 +141,13 @@ var Curve = this.Curve = Base.extend({
|| this._path.closed && curves[curves.length - 1]) || null; || this._path.closed && curves[curves.length - 1]) || null;
}, },
// TODO: port back to Scriptographer? // TODO: Port back to Scriptographer
setSelected: function(selected) { setSelected: function(selected) {
this.getHandle1().setSelected(selected); this.getHandle1().setSelected(selected);
this.getHandle2().setSelected(selected); this.getHandle2().setSelected(selected);
}, },
// TODO: port back to Scriptographer? // TODO: Port back to Scriptographer
isSelected: function() { isSelected: function() {
return this.getHandle1().isSelected() && this.getHandle2.isSelected(); return this.getHandle1().isSelected() && this.getHandle2.isSelected();
}, },

View file

@ -140,7 +140,7 @@ var Segment = this.Segment = Base.extend({
return false; return false;
}, },
// TODO: port setSelected(selected) back to Scriptographer // TODO: Port setSelected(selected) back to Scriptographer
setSelected: function(/* pt, selected */) { setSelected: function(/* pt, selected */) {
var pt, selected; var pt, selected;
if (arguments.length == 2) { if (arguments.length == 2) {

View file

@ -50,12 +50,12 @@ var Key = new function() {
// 'preventDefault: event.preventDefault' throws // 'preventDefault: event.preventDefault' throws
// an error in Safari when called, so we have to wrap // an error in Safari when called, so we have to wrap
// it into a function. // it into a function.
// TODO: port to Scriptographer. // TODO: Port to Scriptographer:
preventDefault: function() { preventDefault: function() {
event.preventDefault() event.preventDefault()
} }
}); });
// TODO: port to Scriptographer: // TODO: Port to Scriptographer:
// When the handler function returns false, prevent the // When the handler function returns false, prevent the
// default behaviour of the key event: // default behaviour of the key event:
if (preventDefault === false) if (preventDefault === false)