From 68f8ea335ef9bfe2e6973209a131af34589f6ec5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B0=D0=B2=D1=80=D1=91=D0=BD=D0=BE=D0=B2=20=D0=90?= =?UTF-8?q?=D0=BD=D1=82=D0=BE=D0=BD?= Date: Tue, 20 May 2014 18:09:02 +0800 Subject: [PATCH] cleaning docs --- kinetic.js | 23 ++--------------------- src/Global.js | 4 ++-- src/Node.js | 19 ------------------- test/unit/BaseLayer-test.js | 2 +- 4 files changed, 5 insertions(+), 43 deletions(-) diff --git a/kinetic.js b/kinetic.js index 863cda0f..9d79b38d 100644 --- a/kinetic.js +++ b/kinetic.js @@ -361,7 +361,7 @@ var Kinetic = {}; * to contain groups or shapes. * @constructor * @memberof Kinetic - * @augments Kinetic.Container + * @augments Kinetic.BaseLayer * @param {Object} config * @param {Boolean} [config.clearBeforeDraw] set this property to false if you don't want * to clear the canvas before each layer draw. The default value is true. @@ -405,7 +405,7 @@ var Kinetic = {}; * It renders about 2x faster than normal layers. * @constructor * @memberof Kinetic - * @augments Kinetic.Container + * @augments Kinetic.BaseLayer * @param {Object} config * @param {Boolean} [config.clearBeforeDraw] set this property to false if you don't want * to clear the canvas before each layer draw. The default value is true. @@ -3646,21 +3646,9 @@ var Kinetic = {}; height: this.getHeight() }; }, - /** - * get width - * @method - * @memberof Kinetic.Node.prototype - * @returns {Integer} - */ getWidth: function() { return this.attrs.width || 0; }, - /** - * get height - * @method - * @memberof Kinetic.Node.prototype - * @returns {Integer} - */ getHeight: function() { return this.attrs.height || 0; }, @@ -3721,13 +3709,6 @@ var Kinetic = {}; newVal: newVal }); }, - /** - * set id - * @method - * @memberof Kinetic.Node.prototype - * @param {String} id - * @returns {Kinetic.Node} - */ setId: function(id) { var oldId = this.getId(); diff --git a/src/Global.js b/src/Global.js index 27b5d5e1..1f06cdae 100644 --- a/src/Global.js +++ b/src/Global.js @@ -197,7 +197,7 @@ var Kinetic = {}; * to contain groups or shapes. * @constructor * @memberof Kinetic - * @augments Kinetic.Container + * @augments Kinetic.BaseLayer * @param {Object} config * @param {Boolean} [config.clearBeforeDraw] set this property to false if you don't want * to clear the canvas before each layer draw. The default value is true. @@ -217,7 +217,7 @@ var Kinetic = {}; * It renders about 2x faster than normal layers. * @constructor * @memberof Kinetic - * @augments Kinetic.Container + * @augments Kinetic.BaseLayer * @param {Object} config * @param {Boolean} [config.clearBeforeDraw] set this property to false if you don't want * to clear the canvas before each layer draw. The default value is true. diff --git a/src/Node.js b/src/Node.js index a3476e0f..690ff54d 100644 --- a/src/Node.js +++ b/src/Node.js @@ -1361,21 +1361,9 @@ height: this.getHeight() }; }, - /** - * get width - * @method - * @memberof Kinetic.Node.prototype - * @returns {Integer} - */ getWidth: function() { return this.attrs.width || 0; }, - /** - * get height - * @method - * @memberof Kinetic.Node.prototype - * @returns {Integer} - */ getHeight: function() { return this.attrs.height || 0; }, @@ -1436,13 +1424,6 @@ newVal: newVal }); }, - /** - * set id - * @method - * @memberof Kinetic.Node.prototype - * @param {String} id - * @returns {Kinetic.Node} - */ setId: function(id) { var oldId = this.getId(); diff --git a/test/unit/BaseLayer-test.js b/test/unit/BaseLayer-test.js index 2be817a1..c39bd716 100644 --- a/test/unit/BaseLayer-test.js +++ b/test/unit/BaseLayer-test.js @@ -1,7 +1,7 @@ suite('BaseLayer', function() { // ====================================================== - test.only('width and height', function() { + test('width and height', function() { var stage = addStage(); var layer = new Kinetic.FastLayer();