cleaning docs

This commit is contained in:
Лаврёнов Антон 2014-05-20 18:09:02 +08:00
parent f573b3a76b
commit 68f8ea335e
4 changed files with 5 additions and 43 deletions

View File

@ -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();

View File

@ -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.

View File

@ -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();

View File

@ -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();