/* This file is part of Ext JS 3.4 Copyright (c) 2011-2013 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. Build date: 2013-04-03 15:07:25 */ Ext.data.JsonP.Ext({"alternateClassNames":[],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":[],"extends":null,"uses":[],"html":"
Files
Ext core utilities and functions.
\nURL to a 1x1 transparent gif image used by Ext to create inline icons with CSS background images.\nIn older versions of IE, this defaults to \"http://extjs.com/s.gif\" and you should change this to a URL on your server.\nFor other browsers it uses an inline data URL.
\nURL to a blank file used by Ext when in secure mode for iframe src and onReady src to prevent\nthe IE insecure content warning ('about:blank', except for IE in secure mode, which is 'javascript:\"\"').
\nIndicates whether to use native browser parsing for JSON methods.\nThis option is ignored if the browser does not support native JSON methods.\nNote: Native JSON methods will not work with objects that have functions.\nAlso, property names must be quoted, otherwise the data will not parse. (Defaults to false)
\nDefaults to: false
HIGHLY EXPERIMENTAL\nTrue to force css based border-box model override and turning off javascript based adjustments. This is a\nruntime configuration and must be set before onReady.
\nDefaults to: false
True to automatically uncache orphaned Ext.Elements periodically (defaults to true)
\nDefaults to: true
True to automatically purge event listeners during garbageCollection (defaults to false).
\nDefaults to: false
EXPERIMENTAL - True to cascade listener removal to child elements when an element is removed.\nCurrently not optimized for performance.
\nDefaults to: false
True if the detected platform is Adobe Air.
\nTrue if the detected platform is Adobe Air.
\nTrue if the detected browser is Internet Explorer running in non-strict mode.
\nTrue if the detected browser is Internet Explorer running in non-strict mode.
\nTrue if the detected browser is Chrome.
\nTrue if the detected browser is Chrome.
\nTrue if the detected browser uses the Gecko layout engine (e.g. Mozilla, Firefox).
\nTrue if the detected browser uses a pre-Gecko 1.9 layout engine (e.g. Firefox 2.x).
\nTrue if the detected browser uses a Gecko 1.9+ layout engine (e.g. Firefox 3.x).
\nTrue if the detected browser is Internet Explorer.
\nTrue if the detected browser is Internet Explorer.
\nTrue if the detected browser is Internet Explorer 10.x
\nTrue if the detected browser is Internet Explorer 10.x
\nTrue if the detected browser is Internet Explorer 10.x or higher
\nTrue if the detected browser is Internet Explorer 10.x or higher
\nTrue if the detected browser is Internet Explorer 6.x.
\nTrue if the detected browser is Internet Explorer 6.x.
\nTrue if the detected browser is Internet Explorer 7.x.
\nTrue if the detected browser is Internet Explorer 7.x.
\nTrue if the detected browser is Internet Explorer 8.x.
\nTrue if the detected browser is Internet Explorer 8.x.
\nTrue if the detected browser is Internet Explorer 9.x.
\nTrue if the detected browser is Internet Explorer 9.x.
\nTrue if the detected browser is Internet Explorer 9.x or lower
\nTrue if the detected browser is Internet Explorer 9.x or lower
\nTrue when the document is fully initialized and ready for action
\nDefaults to: false
True if the detected browser is Safari.
\nTrue if the detected browser is Safari.
\nTrue if the detected browser is Safari 2.x.
\nTrue if the detected browser is Safari 2.x.
\nTrue if the detected browser is Safari 3.x.
\nTrue if the detected browser is Safari 3.x.
\nTrue if the detected browser is Safari 4.x.
\nTrue if the detected browser is Safari 4.x.
\nTrue if the browser is in strict (standards-compliant) mode, as opposed to quirks mode
\nTrue if the browser is in strict (standards-compliant) mode, as opposed to quirks mode
\nTrue if the detected browser uses WebKit.
\nTrue if the detected browser uses WebKit.
\nTrue if the detected platform is Windows.
\nTrue if the detected platform is Windows.
\nBy default, Ext intelligently decides whether floating elements should be shimmed. If you are using flash,\nyou may want to set this to true.
\nNamespace alloted for extensions to the framework.
\nNamespace alloted for extensions to the framework.
\nApplies event listeners to elements by selectors when the document is ready.\nThe event name is specified with an @ suffix.
\n\nExt.addBehaviors({\n // add a listener for click on all anchors in element with id foo\n '#foo a@click' : function(e, t){\n // do something\n },\n\n // add the same listener to multiple selectors (separated by comma BEFORE the @)\n '#foo a, #bar span.some-class@mouseover' : function(){\n // do something\n }\n});\n
\n\nThe list of behaviors to apply
\nCopies all the properties of config to obj. apply
\nThe receiver of the properties
\nThe source of the properties
\nA different object that will also be applied for default values
\nreturns obj
\nCopies all the properties of config to obj if they don't already exist.
\nThe receiver of the properties
\nThe source of the properties
\nreturns obj
\nCopies a set of named properties fom the source object to the destination object.
\n\nexample:\n
ImageComponent = Ext.extend(Ext.BoxComponent, {\n initComponent: function() {\n this.autoEl = { tag: 'img' };\n MyComponent.superclass.initComponent.apply(this, arguments);\n this.initialBox = Ext.copyTo({}, this.initialConfig, 'x,y,width,height');\n }\n});\n
\n\nThe destination object.
\nThe source object.
\nEither an Array of property names, or a comma-delimited list\nof property names to copy.
\nThe modified object.
\nShorthand for Ext.ComponentMgr.create\nCreates a new Component from the specified config object using the\nconfig object's xtype to determine the class to instantiate.
\nA configuration object for the Component you wish to create.
\nThe constructor to provide the default Component type if\nthe config object does not contain a xtype
. (Optional if the config contains a xtype
).
The newly instantiated Component.
\nShorthand for Ext.util.Functions.createDelegate
\nThe function to delegate.
\nThe scope (this
reference) in which the function is executed.\nIf omitted, defaults to the browser window.
Overrides arguments for the call. (Defaults to the arguments passed by the caller)
\nif True args are appended to call args instead of overriding,\nif a number the args are inserted at the specified position
\nThe new function
\nShorthand for Ext.util.Functions.createInterceptor
\nThe original function.
\nThe function to call before the original
\nThe scope (this
reference) in which the passed function is executed.\nIf omitted, defaults to the scope in which the original function is called or the browser window.
The new function
\nShorthand for Ext.util.Functions.createSequence
\nThe original function.
\nThe function to sequence
\nThe scope (this reference) in which the passed function is executed.\nIf omitted, defaults to the scope in which the original function is called or the browser window.
\nThe new function
\nShorthand for Ext.util.JSON.decode
\nThe JSON string
\nWhether to return null or throw an exception if the JSON is invalid.
\nThe resulting object
\nShorthand for Ext.util.Functions.defer
\nThe function to defer.
\nThe number of milliseconds for the setTimeout call (if less than or equal to 0 the function is executed immediately)
\nThe scope (this
reference) in which the function is executed.\nIf omitted, defaults to the browser window.
Overrides arguments for the call. (Defaults to the arguments passed by the caller)
\nif True args are appended to call args instead of overriding,\nif a number the args are inserted at the specified position
\nThe timeout id that can be used with clearTimeout
\nDefines a class or override. A basic class is defined like this:
\n\n Ext.define('My.awesome.Class', {\n someProperty: 'something',\n\n someMethod: function(s) {\n alert(s + this.someProperty);\n }\n\n ...\n });\n\n var obj = new My.awesome.Class();\n\n obj.someMethod('Say '); // alerts 'Say something'\n
\n\nTo create an anonymous class, pass null
for the className
:
Ext.define(null, {\n constructor: function () {\n // ...\n }\n });\n
\n\nIn some cases, it is helpful to create a nested scope to contain some private\nproperties. The best way to do this is to pass a function instead of an object\nas the second parameter. This function will be called to produce the class\nbody:
\n\n Ext.define('MyApp.foo.Bar', function () {\n var id = 0;\n\n return {\n nextId: function () {\n return ++id;\n }\n };\n });\n
\n\nWhen using this form of Ext.define
, the function is passed a reference to its\nclass. This can be used as an efficient way to access any static properties you\nmay have:
Ext.define('MyApp.foo.Bar', function (Bar) {\n return {\n statics: {\n staticMethod: function () {\n // ...\n }\n },\n\n method: function () {\n return Bar.staticMethod();\n }\n };\n });\n
\n\nTo define an override, include the override
property. The content of an\noverride is aggregated with the specified class in order to extend or modify\nthat class. This can be as simple as setting default property values or it can\nextend and/or replace methods. This can also extend the statics of the class.
One use for an override is to break a large class into manageable pieces.
\n\n // File: /src/app/Panel.js\n\n Ext.define('My.app.Panel', {\n extend: 'Ext.panel.Panel',\n\n constructor: function (config) {\n this.callParent(arguments); // calls Ext.panel.Panel's constructor\n //...\n },\n\n statics: {\n method: function () {\n return 'abc';\n }\n }\n });\n\n // File: /src/app/PanelPart2.js\n Ext.define('My.app.PanelPart2', {\n override: 'My.app.Panel',\n\n constructor: function (config) {\n this.callParent(arguments); // calls My.app.Panel's constructor\n //...\n }\n });\n
\n\nAnother use of overrides is to provide optional parts of classes that can be\nindependently required. In this case, the class may even be unaware of the\noverride altogether.
\n\n Ext.define('My.ux.CoolTip', {\n override: 'Ext.tip.ToolTip',\n\n constructor: function (config) {\n this.callParent(arguments); // calls Ext.tip.ToolTip's constructor\n //...\n }\n });\n
\n\nOverrides can also contain statics:
\n\n Ext.define('My.app.BarMod', {\n override: 'Ext.foo.Bar',\n\n statics: {\n method: function (x) {\n return this.callParent([x * 2]); // call Ext.foo.Bar.method\n }\n }\n });\n
\nThe class name to create in string dot-namespaced format, for example:\n'My.very.awesome.Class', 'FeedViewer.plugin.CoolPager'\nIt is highly recommended to follow this simple convention:\n - The root and the class name are 'CamelCased'\n - Everything else is lower-cased\nPass null
to create an anonymous class.
The key - value pairs of properties to apply to this class. Property names can be of any valid\nstrings, except those in the reserved listed below:\n - mixins
\n - statics
\n - config
\n - alias
\n - self
\n - singleton
\n - alternateClassName
\n - override
Optional callback to execute after the class is created, the execution scope of which\n(this
) will be the newly created class itself.
Attempts to destroy any objects passed to it by removing all event listeners, removing them from the\nDOM (if applicable) and calling their destroy functions (if available). This method is primarily\nintended for arguments of type Ext.Element and Ext.Component, but any subclass of\nExt.util.Observable can be passed in. Any number of elements and/or components can be\npassed into this function in a single call as separate arguments.
\nAn Ext.Element, Ext.Component, or an Array of either of these to destroy
\nAttempts to destroy and then remove a set of named properties of the passed object.
\nThe object (most likely a Component) who's properties you wish to destroy.
\nThe name of the property to destroy and remove from the object.
\n... More property names to destroy and remove.
\nIterates an array calling the supplied function.
\nThe array to be iterated. If this\nargument is not really an array, the supplied function is called once.
\nThe function to be called with each item. If the\nsupplied function returns false, iteration stops and this method returns\nthe current index
. This function is called with\nthe following arguments:
item
: Mixed\nindex
\nin the passed array
index
: Number\nallItems
: Array\narray
passed as the first\nargument to Ext.each
.The scope (this
reference) in which the specified function is executed.\nDefaults to the item
at the current index
\nwithin the passed array
.
See description for the fn parameter.
\nShorthand for Ext.util.JSON.encode
\nThe variable to encode
\nThe JSON string
\nExtends one class to create a subclass and optionally overrides members with the passed literal. This method\nalso adds the function \"override()\" to the subclass that can be used to override members of the class.
\n\n\nFor example, to create a subclass of Ext GridPanel:
\n\nMyGridPanel = Ext.extend(Ext.grid.GridPanel, {\n constructor: function(config) {\n\n// Create configuration for this Grid.\n var store = new Ext.data.Store({...});\n var colModel = new Ext.grid.ColumnModel({...});\n\n// Create a new config object containing our computed properties\n// *plus* whatever was in the config parameter.\n config = Ext.apply({\n store: store,\n colModel: colModel\n }, config);\n\n MyGridPanel.superclass.constructor.call(this, config);\n\n// Your postprocessing here\n },\n\n yourMethod: function() {\n // etc.\n }\n});\n
\n\n\n\n\nThis function also supports a 3-argument call in which the subclass's constructor is\npassed as an argument. In this form, the parameters are as follows:
\n\n\nsubclass
: Function superclass
: Function overrides
: Object The constructor of class being extended.
\nA literal with members which are copied into the subclass's\nprototype, and are therefore shared between all instances of the new class.
\n\n\nThis may contain a special member named constructor. This is used\nto define the constructor of the new class, and is returned. If this property is\nnot specified, a constructor is generated and returned which just calls the\nsuperclass's constructor passing on its parameters.
\n\n\nIt is essential that you call the superclass constructor in any provided constructor. See example code.
\n\nThe subclass constructor from the overrides
parameter, or a generated one if not provided.
Gets the globally shared flyweight Element, with the passed node as the active element. Do not store a reference to this element -\nthe dom node can be overwritten by other code. Shorthand of Ext.Element.fly
\n\n\nUse this to make one-time references to DOM elements which are not going to be accessed again either by\napplication code, or by Ext's classes. If accessing an element which will be processed regularly, then get\nwill be more appropriate to take advantage of the caching provided by the Ext.Element class.
\n\nThe dom node or id
\nAllows for creation of named reusable flyweights to prevent conflicts\n(e.g. internally Ext uses \"_global\")
\nThe shared Element object (or null if no matching element was found)
\nRetrieves Ext.Element objects.
\n\nThis method does not retrieve Components. This method\nretrieves Ext.Element objects which encapsulate DOM elements. To retrieve a Component by\nits ID, use Ext.ComponentMgr.get.
\n\n\nUses simple caching to consistently return the same object. Automatically fixes if an\nobject was recreated with the same id via AJAX or DOM.
\n\n\nShorthand of Ext.Element.get
\nThe id of the node, a DOM Node or an existing Element.
\nThe Element object (or null if no matching element was found)
\nThis is shorthand reference to Ext.ComponentMgr.get.\nLooks up an existing Component by id
\nExt.Component The Component, undefined if not found, or null if a\nClass was found.
\nReturns the current HTML document object as an Ext.Element.
\nExt.Element The document
\nReturn the dom node for the passed String (id), dom node, or Ext.Element.\nOptional 'strict' flag is needed for IE since it can return 'name' and\n'id' elements by using getElementById.\nHere are some examples:
\n\n// gets dom node based on id\nvar elDom = Ext.getDom('elId');\n// gets dom node based on the dom node\nvar elDom1 = Ext.getDom(elDom);\n\n// If we don't know if we are working with an\n// Ext.Element or a dom node use Ext.getDom\nfunction(el){\n var dom = Ext.getDom(el);\n // do something with the dom node\n}\n
\n\n\nNote: the dom node to be found actually needs to exist (be rendered, etc)\nwhen this method is called to be successful.
\nHTMLElement
\nUtility method for getting the width of the browser scrollbar. This can differ depending on\noperating system settings, such as the theme or font size.
\ntrue to force a recalculation of the value.
\nThe width of the scrollbar.
\nFramework-wide error-handler. Developers can override this method to provide\ncustom exception-handling. Framework errors will often extend from the base\nExt.Error class.
\nThe thrown exception object.
\nInvokes a method on each item in an Array.
\n\n// Example:\nExt.invoke(Ext.query(\"p\"), \"getAttribute\", \"id\");\n// [el1.getAttribute(\"id\"), el2.getAttribute(\"id\"), ..., elN.getAttribute(\"id\")]\n
\n\nThe Array of items to invoke the method on.
\nThe method name to invoke.
\nArguments to send into the method invocation.
\nThe results of invoking the method on each item in the array.
\nReturns true if the passed value is a JavaScript array, otherwise false.
\nThe value to test
\nReturns true if the passed value is a boolean.
\nThe value to test
\nReturns true if the passed object is a JavaScript date object, otherwise false.
\nThe object to test
\nReturns true if the passed value is not undefined.
\nThe value to test
\nReturns true if the passed value is an HTMLElement
\nThe value to test
\nReturns true if the passed value is empty.
\n\n\nThe value is deemed to be empty if it is
The value to test
\ntrue to allow empty strings (defaults to false)
\nReturns true if the passed value is a JavaScript Function, otherwise false.
\nThe value to test
\nReturns true if the passed value is a number. Returns false for non-finite numbers.
\nThe value to test
\nReturns true if the passed value is a JavaScript Object, otherwise false.
\nThe value to test
\nReturns true if the passed value is a JavaScript 'primitive', a string, number or boolean.
\nThe value to test
\nReturns true if the passed value is a string.
\nThe value to test
\nIterates either the elements in an array, or each of the properties in an object.\nNote: If you are only iterating arrays, it is better to call each.
\nThe object or array to be iterated
\nThe function to be called for each iteration.\nThe iteration will stop if the supplied function returns false, or\nall array elements / object properties have been covered. The signature\nvaries depending on the type of object being interated:
\n\nThe scope (this
reference) in which the specified function is executed. Defaults to\nthe object
being iterated.
Returns the maximum value in the Array
\nReturns the minimum value in the Array.
\nCreates namespaces to be used for scoping variables and classes so that they are not global.\nSpecifying the last node of a namespace implicitly creates all other nodes. Usage:
\n\nExt.namespace('Company', 'Company.data');\nExt.namespace('Company.data'); // equivalent and preferable to above syntax\nCompany.Widget = function() { ... }\nCompany.data.CustomStore = function(config) { ... }\n
\n\nThe namespace object. (If multiple arguments are passed, this will be the last namespace created)
\nCreates namespaces to be used for scoping variables and classes so that they are not global.\nSpecifying the last node of a namespace implicitly creates all other nodes. Usage:
\n\nExt.namespace('Company', 'Company.data');\nExt.namespace('Company.data'); // equivalent and preferable to above syntax\nCompany.Widget = function() { ... }\nCompany.data.CustomStore = function(config) { ... }\n
\n\nThe namespace object. (If multiple arguments are passed, this will be the last namespace created)
\nUtility method for validating that a value is numeric, returning the specified default value if it is not.
\nShould be a number, but any type will be handled appropriately
\nThe value to return if the original value is non-numeric
\nValue, if numeric, else defaultValue
\nAdds a listener to be notified when the document is ready (before onload and before images are loaded). Shorthand of Ext.EventManager.onDocumentReady.
\nThe method the event invokes.
\nThe scope (this
reference) in which the handler function executes. Defaults to the browser window.
Options object as passed to Ext.Element.addListener. It is recommended that the options\n{single: true}
be used so that the handler is removed on first invocation.
Overrides members of the specified target
with the given values.
If the target
is a function, it is assumed to be a constructor and the contents\nof overrides
are applied to its prototype
using Ext.apply.
If the target
is an instance of a class created using define,\nthe overrides
are applied to only that instance. In this case, methods are\nspecially processed to allow them to use Ext.Base.callParent.
var panel = new Ext.Panel({ ... });\n\n Ext.override(panel, {\n initComponent: function () {\n // extra processing...\n\n this.callParent();\n }\n });\n
\n\nIf the target
is none of these, the overrides
are applied to the target
\nusing Ext.apply.
Please refer to Ext.define for further details.
\nThe target to override.
\nThe properties to add or replace on target
.
Partitions the set into two sets: a true set and a false set.\nExample:\nExample2:
\n\n// Example 1:\nExt.partition([true, false, true, true, false]); // [[true, true, true], [false, false]]\n\n// Example 2:\nExt.partition(\n Ext.query(\"p\"),\n function(val){\n return val.className == \"class1\"\n }\n);\n// true are those paragraph elements with a className of \"class1\",\n// false set are those that do not have that className.\n
\n\nPlucks the value of a property from each item in the Array
\n\n// Example:\nExt.pluck(Ext.query(\"p\"), \"className\"); // [el1.className, el2.className, ..., elN.className]\n
\n\nThe Array of items to pluck the value from.
\nThe property name to pluck from each element.
\nThe value from each item in the Array.
\nShorthand for Ext.ComponentMgr.registerPlugin
\nThe mnemonic string by which the Plugin class\nmay be looked up.
\nThe new Plugin class.
\nShorthand for Ext.ComponentMgr.registerType
\nThe mnemonic string by which the Component class\nmay be looked up.
\nThe new Component class.
\nRemoves this element from the document, removes all DOM event listeners, and deletes the cache reference.\nAll DOM event listeners are removed from this element. If enableNestedListenerRemoval is\ntrue
, then DOM event listeners are also removed from all child nodes. The body node\nwill be ignored if passed in.
The node to remove
\nSelects elements based on the passed CSS selector to enable Element methods\nto be applied to many related elements in one statement through the returned CompositeElement or\nCompositeElementLite object.
\nThe CSS selector or an array of elements
\nThe root element of the query or id of the root
\nConverts any iterable (numeric indices and a length property) into a true array\nDon't use this on strings. IE doesn't support \"abc\"[0] which this implementation depends on.\nFor strings, use this instead: \"abc\".match(/./g) => [a,b,c];
\niterable object to be turned into a true Array.
\n(Array) array
\nReturns the type of object that is passed in. If the object passed in is null or undefined it\nreturn false otherwise it returns one of the following values:
Takes an encoded URL and and converts it to an object. Example:
\n\nExt.urlDecode(\"foo=1&bar=2\"); // returns {foo: \"1\", bar: \"2\"}\nExt.urlDecode(\"foo=1&bar=2&bar=3&bar=4\", false); // returns {foo: \"1\", bar: [\"2\", \"3\", \"4\"]}\n
\n\nItems of the same name will overwrite previous values instead of creating an an array (Defaults to false).
\nA literal with members
\nTakes an object and converts it to an encoded URL. e.g. Ext.urlEncode({foo: 1, bar: 2}); would return \"foo=1&bar=2\". Optionally, property values can be arrays, instead of keys and the resulting string that's returned will contain a name/value pair for each array value.
\nA prefix to add to the url encoded string
\nUtility method for returning a default value if the passed value is empty.
\n\n\nThe value is deemed to be empty if it is
The value to test
\nThe value to return if the original value is empty
\ntrue to allow zero length strings to qualify as non-empty (defaults to false)
\nvalue, if non-empty, else defaultValue
\nZips N sets together.
\n\n\n// Example 1:\nExt.zip([1,2,3],[4,5,6]); // [[1,4],[2,5],[3,6]]\n// Example 2:\nExt.zip(\n [ \"+\", \"-\", \"+\"],\n [ 12, 10, 22],\n [ 43, 15, 96],\n function(a, b, c){\n return \"$\" + a + \"\" + b + \".\" + c\n }\n); // [\"$+12.43\", \"$-10.15\", \"$+22.96\"]\n
\n\nThis argument may be repeated. Array(s) to contribute values.
\nThe last item in the argument list. This will drive how the items are zipped together.
\nThe zipped set.
\n