mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Clean up port comments.
This commit is contained in:
parent
ac5dca4fc0
commit
77ad25ffba
3 changed files with 5 additions and 5 deletions
|
@ -141,13 +141,13 @@ var Curve = this.Curve = Base.extend({
|
|||
|| this._path.closed && curves[curves.length - 1]) || null;
|
||||
},
|
||||
|
||||
// TODO: port back to Scriptographer?
|
||||
// TODO: Port back to Scriptographer
|
||||
setSelected: function(selected) {
|
||||
this.getHandle1().setSelected(selected);
|
||||
this.getHandle2().setSelected(selected);
|
||||
},
|
||||
|
||||
// TODO: port back to Scriptographer?
|
||||
// TODO: Port back to Scriptographer
|
||||
isSelected: function() {
|
||||
return this.getHandle1().isSelected() && this.getHandle2.isSelected();
|
||||
},
|
||||
|
|
|
@ -140,7 +140,7 @@ var Segment = this.Segment = Base.extend({
|
|||
return false;
|
||||
},
|
||||
|
||||
// TODO: port setSelected(selected) back to Scriptographer
|
||||
// TODO: Port setSelected(selected) back to Scriptographer
|
||||
setSelected: function(/* pt, selected */) {
|
||||
var pt, selected;
|
||||
if (arguments.length == 2) {
|
||||
|
|
|
@ -50,12 +50,12 @@ var Key = new function() {
|
|||
// 'preventDefault: event.preventDefault' throws
|
||||
// an error in Safari when called, so we have to wrap
|
||||
// it into a function.
|
||||
// TODO: port to Scriptographer.
|
||||
// TODO: Port to Scriptographer:
|
||||
preventDefault: function() {
|
||||
event.preventDefault()
|
||||
}
|
||||
});
|
||||
// TODO: port to Scriptographer:
|
||||
// TODO: Port to Scriptographer:
|
||||
// When the handler function returns false, prevent the
|
||||
// default behaviour of the key event:
|
||||
if (preventDefault === false)
|
||||
|
|
Loading…
Reference in a new issue