Skip to content

Commit 9a1e292

Browse files
author
David Gillen
committed
Merge branch 'master' of github.com:CreateJS/EaselJS
2 parents 31ee10d + 098d5a7 commit 9a1e292

25 files changed

+386
-313
lines changed

docs/easeljs_docs-NEXT.zip

6.43 KB
Binary file not shown.

lib/easeljs-NEXT.js

Lines changed: 238 additions & 160 deletions
Large diffs are not rendered by default.

lib/easeljs-NEXT.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/createjs/events/Event.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ this.createjs = this.createjs||{};
173173

174174
// public methods:
175175
/**
176-
* Sets {{#crossLink "Event/defaultPrevented"}}{{/crossLink}} to true if the event is cancelable.
176+
* Sets {{#crossLink "Event/defaultPrevented:property"}}{{/crossLink}} to true if the event is cancelable.
177177
* Mirrors the DOM level 2 event standard. In general, cancelable events that have `preventDefault()` called will
178178
* cancel the default behaviour associated with the event.
179179
* @method preventDefault
@@ -183,7 +183,7 @@ this.createjs = this.createjs||{};
183183
};
184184

185185
/**
186-
* Sets {{#crossLink "Event/propagationStopped"}}{{/crossLink}} to true.
186+
* Sets {{#crossLink "Event/propagationStopped:property"}}{{/crossLink}} to true.
187187
* Mirrors the DOM event standard.
188188
* @method stopPropagation
189189
**/
@@ -192,8 +192,8 @@ this.createjs = this.createjs||{};
192192
};
193193

194194
/**
195-
* Sets {{#crossLink "Event/propagationStopped"}}{{/crossLink}} and
196-
* {{#crossLink "Event/immediatePropagationStopped"}}{{/crossLink}} to true.
195+
* Sets {{#crossLink "Event/propagationStopped:property"}}{{/crossLink}} and
196+
* {{#crossLink "Event/immediatePropagationStopped:property"}}{{/crossLink}} to true.
197197
* Mirrors the DOM event standard.
198198
* @method stopImmediatePropagation
199199
**/

src/createjs/utils/Ticker.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,9 @@ this.createjs = this.createjs||{};
318318
};
319319

320320
/**
321+
* Use the {{#crossLink "Ticker/interval:property"}}{{/crossLink}} property instead.
321322
* @method setInterval
322-
* @deprecated Use the {{#crossLink "Ticker/interval:property"}}{{/crossLink}} property instead.
323+
* @deprecated
323324
*/
324325
// Ticker.setInterval is @deprecated. Remove for 1.1+
325326
Ticker.setInterval = createjs.deprecate(Ticker._setInterval, "Ticker.setInterval");
@@ -336,8 +337,9 @@ this.createjs = this.createjs||{};
336337
};
337338

338339
/**
340+
* Use the {{#crossLink "Ticker/interval:property"}}{{/crossLink}} property instead.
339341
* @method getInterval
340-
* @deprecated Use the {{#crossLink "Ticker/interval:property"}}{{/crossLink}} property instead.
342+
* @deprecated
341343
*/
342344
// Ticker.getInterval is @deprecated. Remove for 1.1+
343345
Ticker.getInterval = createjs.deprecate(Ticker._getInterval, "Ticker.getInterval");
@@ -354,8 +356,9 @@ this.createjs = this.createjs||{};
354356
};
355357

356358
/**
359+
* Use the {{#crossLink "Ticker/framerate:property"}}{{/crossLink}} property instead.
357360
* @method setFPS
358-
* @deprecated Use the {{#crossLink "Ticker/framerate:property"}}{{/crossLink}} property instead.
361+
* @deprecated
359362
*/
360363
// Ticker.setFPS is @deprecated. Remove for 1.1+
361364
Ticker.setFPS = createjs.deprecate(Ticker._setFPS, "Ticker.setFPS");
@@ -372,8 +375,9 @@ this.createjs = this.createjs||{};
372375
};
373376

374377
/**
378+
* Use the {{#crossLink "Ticker/framerate:property"}}{{/crossLink}} property instead.
375379
* @method getFPS
376-
* @deprecated Use the {{#crossLink "Ticker/framerate:property"}}{{/crossLink}} property instead.
380+
* @deprecated
377381
*/
378382
// Ticker.getFPS is @deprecated. Remove for 1.1+
379383
Ticker.getFPS = createjs.deprecate(Ticker._getFPS, "Ticker.getFPS");
@@ -502,7 +506,7 @@ this.createjs = this.createjs||{};
502506
* @method getEventTime
503507
* @static
504508
* @param runTime {Boolean} [runTime=false] If true, the runTime property will be returned instead of time.
505-
* @returns {number} The time or runTime property from the most recent tick event or -1.
509+
* @return {number} The time or runTime property from the most recent tick event or -1.
506510
*/
507511
Ticker.getEventTime = function(runTime) {
508512
return Ticker._startTime ? (Ticker._lastTime || Ticker._startTime) - (runTime ? Ticker._pausedTime : 0) : -1;

src/easeljs/display/Bitmap.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ this.createjs = this.createjs||{};
9898
this.sourceRect = null;
9999

100100
// private properties:
101-
/**
102-
* Docced in superclass.
103-
*/
101+
// Docced in superclass
104102
this._webGLRenderStyle = createjs.DisplayObject._StageGL_BITMAP;
105103
}
106104
var p = createjs.extend(Bitmap, createjs.DisplayObject);
@@ -193,9 +191,7 @@ this.createjs = this.createjs||{};
193191
* @method uncache
194192
**/
195193

196-
/**
197-
* Docced in superclass.
198-
*/
194+
// Docced in superclass
199195
p.getBounds = function() {
200196
var rect = this.DisplayObject_getBounds();
201197
if (rect) { return rect; }

src/easeljs/display/BitmapText.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ this.createjs = this.createjs || {};
154154

155155
/**
156156
* Sprite object pool.
157+
* @property _spritePool
157158
* @type {Array}
158159
* @static
159160
* @private
@@ -162,18 +163,14 @@ this.createjs = this.createjs || {};
162163

163164

164165
// public methods:
165-
/**
166-
* Docced in superclass.
167-
**/
166+
// Docced in superclass
168167
p.draw = function(ctx, ignoreCache) {
169168
if (this.DisplayObject_draw(ctx, ignoreCache)) { return; }
170169
this._updateState();
171170
this.Container_draw(ctx, ignoreCache);
172171
};
173172

174-
/**
175-
* Docced in superclass.
176-
**/
173+
// Docced in superclass
177174
p.getBounds = function() {
178175
this._updateText();
179176
return this.Container_getBounds();
@@ -219,9 +216,7 @@ this.createjs = this.createjs || {};
219216

220217

221218
// private methods:
222-
/**
223-
* Docced in superclass.
224-
**/
219+
// Docced in superclass
225220
p._updateState = function() {
226221
this._updateText();
227222
};

src/easeljs/display/Container.js

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,11 @@ this.createjs = this.createjs||{};
3838
* A Container is a nestable display list that allows you to work with compound display elements. For example you could
3939
* group arm, leg, torso and head {{#crossLink "Bitmap"}}{{/crossLink}} instances together into a Person Container, and
4040
* transform them as a group, while still being able to move the individual parts relative to each other. Children of
41-
* containers have their <code>transform</code> and <code>alpha</code> properties concatenated with their parent
42-
* Container.
41+
* containers have their `transform` and `alpha` properties concatenated with their parent Container.
4342
*
44-
* For example, a {{#crossLink "Shape"}}{{/crossLink}} with x=100 and alpha=0.5, placed in a Container with <code>x=50</code>
45-
* and <code>alpha=0.7</code> will be rendered to the canvas at <code>x=150</code> and <code>alpha=0.35</code>.
46-
* Containers have some overhead, so you generally shouldn't create a Container to hold a single child.
43+
* For example, a {{#crossLink "Shape"}}{{/crossLink}} with `x=100` and `alpha=0.5`, placed in a Container with `x=50`
44+
* and `alpha=0.7` will be rendered to the canvas at `x=150` and `alpha=0.35`. Containers have some overhead, so you
45+
* generally shouldn't create a Container to hold a single child.
4746
*
4847
* <h4>Example</h4>
4948
*
@@ -105,8 +104,9 @@ this.createjs = this.createjs||{};
105104
};
106105

107106
/**
107+
* Use the {{#crossLink "Container/numChildren:property"}}{{/crossLink}} property instead.
108108
* @method getNumChildren
109-
* @deprecated Use the {{#crossLink "Container/numChildren:property"}}{{/crossLink}} property instead.
109+
* @deprecated
110110
*/
111111
// Container.getNumChildren is @deprecated. Remove for 1.1+
112112
p.getNumChildren = createjs.deprecate(p._getNumChildren, "Container.getNumChildren");
@@ -358,7 +358,7 @@ this.createjs = this.createjs||{};
358358
* container.sortChildren(sortFunction);
359359
*
360360
* @method sortChildren
361-
* @param {Function} sortFunction the function to use to sort the child list. See JavaScript's <code>Array.sort</code>
361+
* @param {Function} sortFunction the function to use to sort the child list. See JavaScript's `Array.sort`
362362
* documentation for details.
363363
**/
364364
p.sortChildren = function(sortFunction) {
@@ -467,7 +467,7 @@ this.createjs = this.createjs||{};
467467
* list. This routine ignores any display objects with {{#crossLink "DisplayObject/mouseEnabled:property"}}{{/crossLink}}
468468
* set to `false`. The array will be sorted in order of visual depth, with the top-most display object at index 0.
469469
* This uses shape based hit detection, and can be an expensive operation to run, so it is best to use it carefully.
470-
* For example, if testing for objects under the mouse, test on tick (instead of on {{#crossLink "DisplayObject/mousemove:event"}}{{/crossLink}}),
470+
* For example, if testing for objects under the mouse, test on tick (instead of on {{#crossLink "Stage/stagemousemove:event"}}{{/crossLink}}),
471471
* and only if the mouse's position has changed.
472472
*
473473
* <ul>
@@ -478,7 +478,7 @@ this.createjs = this.createjs||{};
478478
* listeners or a {{#crossLink "DisplayObject:cursor:property"}}{{/crossLink}} property. That is, only objects
479479
* that would normally intercept mouse interaction will be included. This can significantly improve performance
480480
* in some cases by reducing the number of display objects that need to be tested.</li>
481-
* </li>
481+
* </ul>
482482
*
483483
* This method accounts for both {{#crossLink "DisplayObject/hitArea:property"}}{{/crossLink}} and {{#crossLink "DisplayObject/mask:property"}}{{/crossLink}}.
484484
* @method getObjectsUnderPoint
@@ -496,7 +496,7 @@ this.createjs = this.createjs||{};
496496

497497
/**
498498
* Similar to {{#crossLink "Container/getObjectsUnderPoint"}}{{/crossLink}}, but returns only the top-most display
499-
* object. This runs significantly faster than <code>getObjectsUnderPoint()</code>, but is still potentially an expensive
499+
* object. This runs significantly faster than `getObjectsUnderPoint()`, but is still potentially an expensive
500500
* operation. See {{#crossLink "Container/getObjectsUnderPoint"}}{{/crossLink}} for more information.
501501
* @method getObjectUnderPoint
502502
* @param {Number} x The x position in the container to test.
@@ -509,17 +509,13 @@ this.createjs = this.createjs||{};
509509
return this._getObjectsUnderPoint(pt.x, pt.y, null, mode>0, mode==1);
510510
};
511511

512-
/**
513-
* Docced in superclass.
514-
*/
512+
// Docced in superclass
515513
p.getBounds = function() {
516514
return this._getBounds(null, true);
517515
};
518516

519517

520-
/**
521-
* Docced in superclass.
522-
*/
518+
// Docced in superclass
523519
p.getTransformedBounds = function() {
524520
return this._getBounds();
525521
};

0 commit comments

Comments
 (0)