+/*
+
+This file is part of Ext JS 4
+
+Copyright (c) 2011 Sencha Inc
+
+Contact: http://www.sencha.com/contact
+
+GNU General Public License Usage
+This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
+
+If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.
+
+*/
/**
* @author Jacky Nguyen <jacky@sencha.com>
* @docauthor Jacky Nguyen <jacky@sencha.com>
*
* @type Class
* @protected
- * @markdown
*/
self: Base,
- /**
- * Default constructor, simply returns `this`
- *
- * @constructor
- * @protected
- * @return {Object} this
- */
+ // Default constructor, simply returns `this`
constructor: function() {
return this;
},
* @protected
* @param {Object} config
* @return {Object} mixins The mixin prototypes as key - value pairs
- * @markdown
*/
initConfig: function(config) {
if (!this.$configInited) {
* @param {Array/Arguments} args The arguments, either an array or the `arguments` object
* from the current method, for example: `this.callParent(arguments)`
* @return {Mixed} Returns the result from the superclass' method
- * @markdown
*/
callParent: function(args) {
var method = this.callParent.caller,
*
* @protected
* @return {Class}
- * @markdown
*/
statics: function() {
var method = this.statics.caller,
*
* @param {Array/Arguments} args The arguments, either an array or the `arguments` object
* @return {Mixed} Returns the result after calling the overridden method
- * @markdown
*/
callOverridden: function(args) {
var method = this.callOverridden.caller;
* someConfig: true
* });
*
- * @property create
+ * All parameters are passed to the constructor of the class.
+ *
+ * @return {Object} the created instance.
* @static
- * @type Function
- * @markdown
*/
create: function() {
return Ext.create.apply(Ext, [this].concat(Array.prototype.slice.call(arguments, 0)));
* method2: function() { ... } // My.cool.Class.method2 = function() { ... };
* });
*
- * @property addStatics
- * @static
- * @type Function
* @param {Object} members
- * @markdown
+ * @return {Ext.Base} this
+ * @static
*/
addStatics: function(members) {
for (var name in members) {
* var kitty = new My.awesome.Cat;
* kitty.meow();
*
- * @property implement
- * @static
- * @type Function
* @param {Object} members
- * @markdown
+ * @static
*/
implement: function(members) {
var prototype = this.prototype,
* alert(steve.money); // alerts '$$$'
* steve.printMoney(); // alerts '$$$$$$$'
*
- * @property borrow
- * @static
- * @type Function
* @param {Ext.Base} fromClass The class to borrow members from
* @param {Array/String} members The names of the members to borrow
* @return {Ext.Base} this
- * @markdown
+ * @static
+ * @private
*/
borrow: function(fromClass, members) {
var fromPrototype = fromClass.prototype,
* // alerts "I'm a cat!"
* // alerts "Meeeeoooowwww"
*
- * @property override
- * @static
- * @type Function
* @param {Object} members
* @return {Ext.Base} this
- * @markdown
+ * @static
*/
override: function(members) {
var prototype = this.prototype,
* My.cool.Class.getName(); // 'My.cool.Class'
*
* @return {String} className
- * @markdown
*/
getName: function() {
return Ext.getClassName(this);
*
* test.method5(); // test.method3() -> test.method1()
*
- * @property createAlias
- * @static
- * @type Function
* @param {String/Object} alias The new method name, or an object to set multiple aliases. See
* {@link Ext.Function#flexSetter flexSetter}
* @param {String/Object} origin The original method name
- * @markdown
+ * @static
+ * @method
*/
createAlias: flexSetter(function(alias, origin) {
this.prototype[alias] = this.prototype[origin];
});
})(Ext.Function.flexSetter);
+