Use a Base object for PaperScope#settings and update straps.js to version that offers Base#set().

This commit is contained in:
Jürg Lehni 2014-04-11 13:32:06 +02:00
parent 1f7cb30fa5
commit d12607dd44
3 changed files with 4 additions and 4 deletions

View file

@ -24,7 +24,7 @@
"test" "test"
], ],
"devDependencies": { "devDependencies": {
"straps": "~1.5.1", "straps": "~1.5.2",
"acorn": "git://github.com/paperjs/acorn#0.3.2", "acorn": "git://github.com/paperjs/acorn#0.3.2",
"esprima": "~1.0.3", "esprima": "~1.0.3",
"stats.js": "r11" "stats.js": "r11"

View file

@ -48,11 +48,11 @@ var PaperScope = Base.extend(/** @lends PaperScope# */{
// one. // one.
paper = this; paper = this;
// Default configurable settings. // Default configurable settings.
this.settings = { this.settings = new Base({
applyMatrix: true, applyMatrix: true,
handleSize: 4, handleSize: 4,
hitTolerance: 0 hitTolerance: 0
}; });
this.project = null; this.project = null;
this.projects = []; this.projects = [];
this.tools = []; this.tools = [];

View file

@ -87,7 +87,7 @@ var CurveLocation = Base.extend(/** @lends CurveLocation# */{
}, },
/** /**
* The curve by which the location is defined. * The curve that this location belongs to.
* *
* @type Curve * @type Curve
* @bean * @bean