Fix formatting issues.

This commit is contained in:
Jürg Lehni 2014-10-08 15:52:41 +02:00
parent c7c49d4091
commit a457228846
5 changed files with 24 additions and 21 deletions

View file

@ -10,7 +10,7 @@
* All rights reserved. * All rights reserved.
*/ */
/** /**
* @name ProxyContext * @name ProxyContext
* *
* @class The ProxyContext is a helper class that helps Canvas debugging * @class The ProxyContext is a helper class that helps Canvas debugging

View file

@ -10,18 +10,18 @@
* All rights reserved. * All rights reserved.
*/ */
/** /**
* @name _global_ * @name _global_
* @namespace * @namespace
* *
* When code is executed as PaperScript, the script's scope is populated with * When code is executed as PaperScript, the script's scope is populated with
* all fields of the currently active {@link PaperScope} object, which within * all fields of the currently active {@link PaperScope} object, which within
* the script appear to be global. * the script appear to be global.
* *
* In a JavaScript context, only the {@link paper} variable is added to the * In a JavaScript context, only the {@link paper} variable is added to the
* global scope, referencing the currently active {@link PaperScope} object, * global scope, referencing the currently active {@link PaperScope} object,
* through which all properties and Paper.js classes can be accessed. * through which all properties and Paper.js classes can be accessed.
*/ */
/** @scope _global_ */{ /** @scope _global_ */{
/** /**

View file

@ -15,6 +15,9 @@
// PaperScope, and create the initial paper object, all in one statement: // PaperScope, and create the initial paper object, all in one statement:
/*#*/ if (__options.environment == 'browser') { /*#*/ if (__options.environment == 'browser') {
// NOTE: Do not create local variable `var paper` since it would shield the
// global one in the whole scope.
paper = new (PaperScope.inject(Base.exports, { paper = new (PaperScope.inject(Base.exports, {
// Mark fields as enumerable so PaperScope.inject can pick them up // Mark fields as enumerable so PaperScope.inject can pick them up
enumerable: true, enumerable: true,

View file

@ -10,10 +10,10 @@
* All rights reserved. * All rights reserved.
*/ */
/** /**
* @name Component * @name Component
* @class * @class
*/ */
var Component = Base.extend(Emitter, /** @lends Component# */{ var Component = Base.extend(Emitter, /** @lends Component# */{
_class: 'Component', _class: 'Component',
_events: [ 'onChange', 'onClick' ], _events: [ 'onChange', 'onClick' ],

View file

@ -10,10 +10,10 @@
* All rights reserved. * All rights reserved.
*/ */
/** /**
* @name Palette * @name Palette
* @class * @class
*/ */
var Palette = Base.extend(Emitter, /** @lends Palette# */{ var Palette = Base.extend(Emitter, /** @lends Palette# */{
_class: 'Palette', _class: 'Palette',
_events: [ 'onChange' ], _events: [ 'onChange' ],