X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..f562e4c6e5fac7bcb445985b99acbea4d706e6f0:/docs/output/Ext.util.Region.js?ds=sidebyside diff --git a/docs/output/Ext.util.Region.js b/docs/output/Ext.util.Region.js index 091b30e3..766d3e8b 100644 --- a/docs/output/Ext.util.Region.js +++ b/docs/output/Ext.util.Region.js @@ -1,635 +1 @@ -Ext.data.JsonP.Ext_util_Region({ - "allMixins": [ - - ], - "deprecated": null, - "docauthor": null, - "members": { - "cfg": [ - - ], - "method": [ - { - "deprecated": null, - "alias": null, - "href": "Region.html#Ext-util-Region-method-constructor", - "tagname": "method", - "protected": false, - "shortDoc": "Creates a region from the bounding sides. ...", - "static": false, - "params": [ - { - "type": "Number", - "optional": false, - "doc": "
Top The topmost pixel of the Region.
\n", - "name": "top" - }, - { - "type": "Number", - "optional": false, - "doc": "Right The rightmost pixel of the Region.
\n", - "name": "right" - }, - { - "type": "Number", - "optional": false, - "doc": "Bottom The bottom pixel of the Region.
\n", - "name": "bottom" - }, - { - "type": "Number", - "optional": false, - "doc": "Left The leftmost pixel of the Region.
\n", - "name": "left" - } - ], - "private": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "doc": "Creates a region from the bounding sides.
\n", - "owner": "Ext.util.Region", - "name": "Region", - "html_filename": "Region.html", - "return": { - "type": "Object", - "doc": "\n" - }, - "linenr": 40 - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-adjust", - "shortDoc": "Modifies the current region to be adjusted by offsets. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Number", - "optional": false, - "doc": "top offset
\n", - "name": "top" - }, - { - "type": "Number", - "optional": false, - "doc": "right offset
\n", - "name": "right" - }, - { - "type": "Number", - "optional": false, - "doc": "bottom offset
\n", - "name": "bottom" - }, - { - "type": "Number", - "optional": false, - "doc": "left offset
\n", - "name": "left" - } - ], - "name": "adjust", - "owner": "Ext.util.Region", - "doc": "Modifies the current region to be adjusted by offsets.
\n", - "linenr": 116, - "return": { - "type": "void", - "doc": "\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-constrainTo", - "shortDoc": "Modifies the current region to be constrained to the targetRegion. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Ext.util.Region", - "optional": false, - "doc": "\n", - "name": "targetRegion" - } - ], - "name": "constrainTo", - "owner": "Ext.util.Region", - "doc": "Modifies the current region to be constrained to the targetRegion.
\n", - "linenr": 102, - "return": { - "type": "void", - "doc": "\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-contains", - "shortDoc": "Checks if this region completely contains the region that is passed in. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Ext.util.Region", - "optional": false, - "doc": "\n", - "name": "region" - } - ], - "name": "contains", - "owner": "Ext.util.Region", - "doc": "Checks if this region completely contains the region that is passed in.
\n", - "linenr": 55, - "return": { - "type": "void", - "doc": "\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-copy", - "shortDoc": "Create a copy of this Region. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - - ], - "name": "copy", - "owner": "Ext.util.Region", - "doc": "Create a copy of this Region.
\n", - "linenr": 308, - "return": { - "type": "Ext.util.Region", - "doc": "\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-copyFrom", - "shortDoc": "Copy the values of another Region to this Region ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Region", - "optional": false, - "doc": "region to copy from.
\n", - "name": "The" - } - ], - "name": "copyFrom", - "owner": "Ext.util.Region", - "doc": "Copy the values of another Region to this Region
\n", - "linenr": 316, - "return": { - "type": "Ext.util.Region", - "doc": "This Region
\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-equals", - "shortDoc": "Check whether this region is equivalent to the given region ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Ext.util.Region", - "optional": false, - "doc": "The region to compare with
\n", - "name": "region" - } - ], - "name": "equals", - "owner": "Ext.util.Region", - "doc": "Check whether this region is equivalent to the given region
\n", - "linenr": 374, - "return": { - "type": "Boolean", - "doc": "\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-from", - "shortDoc": "Creates a Region from a \"box\" Object which contains four numeric properties top, right, bottom and left. ...", - "static": true, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Object", - "optional": false, - "doc": "An object with top
, right
, bottom
and left
properties.
Creates a Region from a \"box\" Object which contains four numeric properties top
, right
, bottom
and left
.
region The Region constructed based on the passed object
\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-getOutOfBoundOffset", - "shortDoc": "Get the offset amount of a point outside the region ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "optional
\n", - "name": "axis" - }, - { - "type": "Ext.util.Point", - "optional": false, - "doc": "the point
\n", - "name": "p" - } - ], - "name": "getOutOfBoundOffset", - "owner": "Ext.util.Region", - "doc": "Get the offset amount of a point outside the region
\n", - "linenr": 132, - "return": { - "type": "Ext.util.Offset", - "doc": "\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-getOutOfBoundOffsetX", - "shortDoc": "Get the offset amount on the x-axis ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Number", - "optional": false, - "doc": "the offset
\n", - "name": "p" - } - ], - "name": "getOutOfBoundOffsetX", - "owner": "Ext.util.Region", - "doc": "Get the offset amount on the x-axis
\n", - "linenr": 155, - "return": { - "type": "Number", - "doc": "\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-getOutOfBoundOffsetY", - "shortDoc": "Get the offset amount on the y-axis ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Number", - "optional": false, - "doc": "the offset
\n", - "name": "p" - } - ], - "name": "getOutOfBoundOffsetY", - "owner": "Ext.util.Region", - "doc": "Get the offset amount on the y-axis
\n", - "linenr": 170, - "return": { - "type": "Number", - "doc": "\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-getRegion", - "shortDoc": "Retrieves an Ext.util.Region for a particular element. ...", - "static": true, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Mixed", - "optional": false, - "doc": "An element ID, htmlElement or Ext.core.Element representing an element in the document.
\n", - "name": "el" - } - ], - "name": "getRegion", - "owner": "Ext.util.Region", - "doc": "Retrieves an Ext.util.Region for a particular element.
\n", - "linenr": 17, - "return": { - "type": "Ext.util.Region", - "doc": "region
\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-intersect", - "shortDoc": "Checks if this region intersects the region passed in. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Ext.util.Region", - "optional": false, - "doc": "\n", - "name": "region" - } - ], - "name": "intersect", - "owner": "Ext.util.Region", - "doc": "Checks if this region intersects the region passed in.
\n", - "linenr": 68, - "return": { - "type": "Ext.util.Region/Boolean", - "doc": "Returns the intersected region or false if there is no intersection.
\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-isOutOfBound", - "shortDoc": "Check whether the point / offset is out of bound ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "String", - "optional": false, - "doc": "optional
\n", - "name": "axis" - }, - { - "type": "Ext.util.Point/Number", - "optional": false, - "doc": "the point / offset
\n", - "name": "p" - } - ], - "name": "isOutOfBound", - "owner": "Ext.util.Region", - "doc": "Check whether the point / offset is out of bound
\n", - "linenr": 185, - "return": { - "type": "Boolean", - "doc": "\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-isOutOfBoundX", - "shortDoc": "Check whether the offset is out of bound in the x-axis ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Number", - "optional": false, - "doc": "the offset
\n", - "name": "p" - } - ], - "name": "isOutOfBoundX", - "owner": "Ext.util.Region", - "doc": "Check whether the offset is out of bound in the x-axis
\n", - "linenr": 204, - "return": { - "type": "Boolean", - "doc": "\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-isOutOfBoundY", - "shortDoc": "Check whether the offset is out of bound in the y-axis ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Number", - "optional": false, - "doc": "the offset
\n", - "name": "p" - } - ], - "name": "isOutOfBoundY", - "owner": "Ext.util.Region", - "doc": "Check whether the offset is out of bound in the y-axis
\n", - "linenr": 213, - "return": { - "type": "Boolean", - "doc": "\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-round", - "shortDoc": "Round all the properties of this region ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - - ], - "name": "round", - "owner": "Ext.util.Region", - "doc": "Round all the properties of this region
\n", - "linenr": 360, - "return": { - "type": "Ext.util.Region", - "doc": "this This Region
\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-translateBy", - "shortDoc": "Translate this region by the given offset amount ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Ext.util.Offset/Object", - "optional": false, - "doc": "Object containing the x
and y
properties.\nOr the x value is using the two argument form.
y value unless using an Offset object.
\n", - "name": "The" - } - ], - "name": "translateBy", - "owner": "Ext.util.Region", - "doc": "Translate this region by the given offset amount
\n", - "linenr": 339, - "return": { - "type": "Ext.util.Region", - "doc": "this This Region
\n" - }, - "html_filename": "Region.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Region.html#Ext-util-Region-method-union", - "shortDoc": "Returns the smallest region that contains the current AND targetRegion. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "params": [ - { - "type": "Ext.util.Region", - "optional": false, - "doc": "\n", - "name": "region" - } - ], - "name": "union", - "owner": "Ext.util.Region", - "doc": "Returns the smallest region that contains the current AND targetRegion.
\n", - "linenr": 88, - "return": { - "type": "void", - "doc": "\n" - }, - "html_filename": "Region.html" - } - ], - "property": [ - - ], - "cssVar": [ - - ], - "cssMixin": [ - - ], - "event": [ - - ] - }, - "singleton": false, - "alias": null, - "superclasses": [ - - ], - "protected": false, - "tagname": "class", - "mixins": [ - - ], - "href": "Region.html#Ext-util-Region", - "subclasses": [ - "Ext.util.Point" - ], - "static": false, - "author": null, - "component": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/util/Region.js", - "private": false, - "alternateClassNames": [ - - ], - "name": "Ext.util.Region", - "doc": "This class represents a rectangular region in X,Y space, and performs geometric\ntransformations or tests upon the region.
\n\n\nThis class may be used to compare the document regions occupied by elements.
\n\n", - "mixedInto": [ - - ], - "linenr": 1, - "xtypes": [ - - ], - "html_filename": "Region.html", - "extends": "Object" -}); \ No newline at end of file +Ext.data.JsonP.Ext_util_Region({"tagname":"class","html":"Hierarchy
Ext.BaseExt.util.RegionRequires
Files
This class represents a rectangular region in X,Y space, and performs geometric\ntransformations or tests upon the region.
\n\nThis class may be used to compare the document regions occupied by elements.
\nGet the reference to the current class from which this object was instantiated. Unlike statics,\nthis.self
is scope-dependent and it's meant to be used for dynamic inheritance. See statics\nfor a detailed comparison
Ext.define('My.Cat', {\n statics: {\n speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n },\n\n constructor: function() {\n alert(this.self.speciesName); / dependent on 'this'\n\n return this;\n },\n\n clone: function() {\n return new this.self();\n }\n});\n\n\nExt.define('My.SnowLeopard', {\n extend: 'My.Cat',\n statics: {\n speciesName: 'Snow Leopard' // My.SnowLeopard.speciesName = 'Snow Leopard'\n }\n});\n\nvar cat = new My.Cat(); // alerts 'Cat'\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone)); // alerts 'My.SnowLeopard'\n
\nModifies the current region to be adjusted by offsets.
\ntop offset
\nright offset
\nbottom offset
\nleft offset
\nthis
\nCall the original method that was previously overridden with override
\n\nExt.define('My.Cat', {\n constructor: function() {\n alert(\"I'm a cat!\");\n\n return this;\n }\n});\n\nMy.Cat.override({\n constructor: function() {\n alert(\"I'm going to be a cat!\");\n\n var instance = this.callOverridden();\n\n alert(\"Meeeeoooowwww\");\n\n return instance;\n }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n // alerts \"I'm a cat!\"\n // alerts \"Meeeeoooowwww\"\n
\nThe arguments, either an array or the arguments
object
Returns the result after calling the overridden method
\nCall the parent's overridden method. For example:
\n\nExt.define('My.own.A', {\n constructor: function(test) {\n alert(test);\n }\n});\n\nExt.define('My.own.B', {\n extend: 'My.own.A',\n\n constructor: function(test) {\n alert(test);\n\n this.callParent([test + 1]);\n }\n});\n\nExt.define('My.own.C', {\n extend: 'My.own.B',\n\n constructor: function() {\n alert(\"Going to call parent's overriden constructor...\");\n\n this.callParent(arguments);\n }\n});\n\nvar a = new My.own.A(1); // alerts '1'\nvar b = new My.own.B(1); // alerts '1', then alerts '2'\nvar c = new My.own.C(2); // alerts \"Going to call parent's overriden constructor...\"\n // alerts '2', then alerts '3'\n
\nThe arguments, either an array or the arguments
object\nfrom the current method, for example: this.callParent(arguments)
Returns the result from the superclass' method
\nModifies the current region to be constrained to the targetRegion.
\nthis
\nChecks if this region completely contains the region that is passed in.
\nCopy the values of another Region to this Region
\nThe region to copy from.
\nThis Region
\nCheck whether this region is equivalent to the given region
\nThe region to compare with
\nGet the offset amount of a point outside the region
\nthe point
\nInitialize configuration for this class. a typical example:
\n\nExt.define('My.awesome.Class', {\n // The default config\n config: {\n name: 'Awesome',\n isAwesome: true\n },\n\n constructor: function(config) {\n this.initConfig(config);\n\n return this;\n }\n});\n\nvar awesome = new My.awesome.Class({\n name: 'Super Awesome'\n});\n\nalert(awesome.getName()); // 'Super Awesome'\n
\nmixins The mixin prototypes as key - value pairs
\nChecks if this region intersects the region passed in.
\nReturns the intersected region or false if there is no intersection.
\nCheck whether the point / offset is out of bound
\nthe point / offset
\nGet the reference to the class from which this object was instantiated. Note that unlike self,\nthis.statics()
is scope-independent and it always returns the class from which it was called, regardless of what\nthis
points to during run-time
Ext.define('My.Cat', {\n statics: {\n totalCreated: 0,\n speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n },\n\n constructor: function() {\n var statics = this.statics();\n\n alert(statics.speciesName); // always equals to 'Cat' no matter what 'this' refers to\n // equivalent to: My.Cat.speciesName\n\n alert(this.self.speciesName); // dependent on 'this'\n\n statics.totalCreated++;\n\n return this;\n },\n\n clone: function() {\n var cloned = new this.self; // dependent on 'this'\n\n cloned.groupName = this.statics().speciesName; // equivalent to: My.Cat.speciesName\n\n return cloned;\n }\n});\n\n\nExt.define('My.SnowLeopard', {\n extend: 'My.Cat',\n\n statics: {\n speciesName: 'Snow Leopard' // My.SnowLeopard.speciesName = 'Snow Leopard'\n },\n\n constructor: function() {\n this.callParent();\n }\n});\n\nvar cat = new My.Cat(); // alerts 'Cat', then alerts 'Cat'\n\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Cat', then alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone)); // alerts 'My.SnowLeopard'\nalert(clone.groupName); // alerts 'Cat'\n\nalert(My.Cat.totalCreated); // alerts 3\n
\nTranslate this region by the given offset amount
\nObject containing the x
and y
properties.\nOr the x value is using the two argument form.
The y value unless using an Offset object.
\nthis This Region
\nReturns the smallest region that contains the current AND targetRegion.
\na new region
\nAdd / override static properties of this class.
\n\nExt.define('My.cool.Class', {\n ...\n});\n\nMy.cool.Class.addStatics({\n someProperty: 'someValue', // My.cool.Class.someProperty = 'someValue'\n method1: function() { ... }, // My.cool.Class.method1 = function() { ... };\n method2: function() { ... } // My.cool.Class.method2 = function() { ... };\n});\n
\nthis
\nBorrow another class' members to the prototype of this class.
\n\nExt.define('Bank', {\n money: '$$$',\n printMoney: function() {\n alert('$$$$$$$');\n }\n});\n\nExt.define('Thief', {\n ...\n});\n\nThief.borrow(Bank, ['money', 'printMoney']);\n\nvar steve = new Thief();\n\nalert(steve.money); // alerts '$$$'\nsteve.printMoney(); // alerts '$$$$$$$'\n
\nThe class to borrow members from
\nThe names of the members to borrow
\nthis
\nCreate a new instance of this Class.
\n\nExt.define('My.cool.Class', {\n ...\n});\n\nMy.cool.Class.create({\n someConfig: true\n});\n
\n\nAll parameters are passed to the constructor of the class.
\nthe created instance.
\nCreate aliases for existing prototype methods. Example:
\n\nExt.define('My.cool.Class', {\n method1: function() { ... },\n method2: function() { ... }\n});\n\nvar test = new My.cool.Class();\n\nMy.cool.Class.createAlias({\n method3: 'method1',\n method4: 'method2'\n});\n\ntest.method3(); // test.method1()\n\nMy.cool.Class.createAlias('method5', 'method3');\n\ntest.method5(); // test.method3() -> test.method1()\n
\nThe new method name, or an object to set multiple aliases. See\nflexSetter
\nThe original method name
\nCreates a Region from a \"box\" Object which contains four numeric properties top
, right
, bottom
and left
.
An object with top
, right
, bottom
and left
properties.
region The Region constructed based on the passed object
\nGet the current class' name in string format.
\n\nExt.define('My.cool.Class', {\n constructor: function() {\n alert(this.self.getName()); // alerts 'My.cool.Class'\n }\n});\n\nMy.cool.Class.getName(); // 'My.cool.Class'\n
\nclassName
\nRetrieves an Ext.util.Region for a particular element.
\nAn element ID, htmlElement or Ext.Element representing an element in the document.
\nregion
\nAdd methods / properties to the prototype of this class.
\n\nExt.define('My.awesome.Cat', {\n constructor: function() {\n ...\n }\n});\n\n My.awesome.Cat.implement({\n meow: function() {\n alert('Meowww...');\n }\n });\n\n var kitty = new My.awesome.Cat;\n kitty.meow();\n
\nOverride prototype members of this class. Overridden methods can be invoked via\ncallOverridden
\n\nExt.define('My.Cat', {\n constructor: function() {\n alert(\"I'm a cat!\");\n\n return this;\n }\n});\n\nMy.Cat.override({\n constructor: function() {\n alert(\"I'm going to be a cat!\");\n\n var instance = this.callOverridden();\n\n alert(\"Meeeeoooowwww\");\n\n return instance;\n }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n // alerts \"I'm a cat!\"\n // alerts \"Meeeeoooowwww\"\n
\nthis
\n