Have BitmapText inherit from SpriteBatch instead of DOC

This commit is contained in:
Chad Engler 2014-02-04 16:15:28 -08:00
parent d0e37e13ef
commit a27daeb360

View file

@ -9,7 +9,7 @@
* http://www.bmglyph.com/ for mac. * http://www.bmglyph.com/ for mac.
* *
* @class BitmapText * @class BitmapText
* @extends DisplayObjectContainer * @extends SpriteBatch
* @constructor * @constructor
* @param text {String} The copy that you would like the text to display * @param text {String} The copy that you would like the text to display
* @param style {Object} The style parameters * @param style {Object} The style parameters
@ -18,7 +18,7 @@
*/ */
PIXI.BitmapText = function(text, style) PIXI.BitmapText = function(text, style)
{ {
PIXI.DisplayObjectContainer.call(this); PIXI.SpriteBatch.call(this);
this._pool = []; this._pool = [];
@ -29,7 +29,7 @@ PIXI.BitmapText = function(text, style)
}; };
// constructor // constructor
PIXI.BitmapText.prototype = Object.create(PIXI.DisplayObjectContainer.prototype); PIXI.BitmapText.prototype = Object.create(PIXI.SpriteBatch.prototype);
PIXI.BitmapText.prototype.constructor = PIXI.BitmapText; PIXI.BitmapText.prototype.constructor = PIXI.BitmapText;
/** /**