Searched refs:key (Results 1 - 25 of 149) sorted by relevance

123456

/yui3/src/querystring/js/
H A Dquerystring-stringify-simple.js6 * without the additional support for nested data structures. Every key-value pair is
31 * supported. When set to true, the key of an
33 * to the key;.
38 // Default behavior is false; standard key notation.
40 key, i, l;
42 for (key in obj) {
43 if (obj.hasOwnProperty(key)) {
44 if (Y.Lang.isArray(obj[key])) {
45 for (i = 0, l = obj[key].length; i < l; i++) {
46 qs.push(EUC(s ? key
[all...]
H A Dquerystring-parse.js28 // Parse a key=val string.
38 return function parsePiece (key, val) {
43 // key=val, called from the map/reduce
44 key = key.split(eq);
46 QueryString.unescape(key.shift()),
47 QueryString.unescape(key.join(eq))
50 key = key.replace(/^\s+|\s+$/g, '');
61 sliced = /(.*)\[([^\]]*)\]$/.exec(key);
[all...]
/yui3/build/querystring-stringify-simple/
H A Dquerystring-stringify-simple-debug.js8 * without the additional support for nested data structures. Every key-value pair is
33 * supported. When set to true, the key of an
35 * to the key;.
40 // Default behavior is false; standard key notation.
42 key, i, l;
44 for (key in obj) {
45 if (obj.hasOwnProperty(key)) {
46 if (Y.Lang.isArray(obj[key])) {
47 for (i = 0, l = obj[key].length; i < l; i++) {
48 qs.push(EUC(s ? key
[all...]
/yui3/src/file/tests/manual/
H A Dupload.php10 foreach($_POST as $key => $value) echo $key."=".htmlentities($value)."\n"; variable
12 foreach($_GET as $key => $value) echo $key."=".htmlentities($value)."\n"; variable
/yui3/src/yui/js/
H A Dyui-core.js27 string `[object Object]` when used as a cache key.
43 var key = arguments.length > 1 ?
47 if (!(key in cache) || (refetch && cache[key] == refetch)) {
48 cache[key] = source.apply(source, arguments);
51 return cache[key];
144 var alwaysOverwrite, exists, from, i, key, len, to;
184 key = whitelist[i];
191 if (!hasOwn.call(from, key)) {
195 // The `key i
[all...]
H A Dyui-object.js102 * @param {String} key Property name to look for.
106 owns = O.owns = function (obj, key) {
107 return !!obj && hasOwn.call(obj, key);
115 * @param {String} key Property name to look for.
148 i, key, len;
151 for (key in obj) {
152 if (owns(obj, key) && key !== 'prototype') {
153 keys.push(key);
157 for (key i
[all...]
/yui3/src/attribute/js/
H A DState.js27 * @param key {String} The name of the property.
30 add : function(name, key, val) {
33 d[name][key] = val;
44 var key;
46 for (key in o) {
47 if (o.hasOwnProperty(key)) {
48 this.add(name, key, o[key]);
58 * @param key {String} The property to remove.
60 remove: function(name, key) {
[all...]
/yui3/build/recordset-indexer/
H A Drecordset-indexer-debug.js10 * This utility does not support any collision handling. New hash table entries with a used key overwrite older ones.
25 * The individual tables can be accessed by the key they are hashing against.
65 * @description Setup the hash table for a given key with all existing records in the recordset
68 * @param key {string} A key to hash by.
72 _setHashTable: function(key) {
79 obj[host._items[i].getValue(key)] = host._items[i];
99 //in each hashtable, look to see if the key is represented in the object being added.
101 function(v, key) {
104 //if the object being added has a key whic
[all...]
/yui3/src/recordset/js/
H A Drecordset-indexer.js8 * This utility does not support any collision handling. New hash table entries with a used key overwrite older ones.
23 * The individual tables can be accessed by the key they are hashing against.
63 * @description Setup the hash table for a given key with all existing records in the recordset
66 * @param key {string} A key to hash by.
70 _setHashTable: function(key) {
77 obj[host._items[i].getValue(key)] = host._items[i];
97 //in each hashtable, look to see if the key is represented in the object being added.
99 function(v, key) {
102 //if the object being added has a key whic
[all...]
/yui3/build/querystring-parse/
H A Dquerystring-parse-debug.js30 // Parse a key=val string.
40 return function parsePiece (key, val) {
45 // key=val, called from the map/reduce
46 key = key.split(eq);
48 QueryString.unescape(key.shift()),
49 QueryString.unescape(key.join(eq))
52 key = key.replace(/^\s+|\s+$/g, '');
63 sliced = /(.*)\[([^\]]*)\]$/.exec(key);
[all...]
/yui3/src/charts/js/
H A DRenderer.js83 Y.Object.each(a, function(value, key, a)
85 if(b.hasOwnProperty(key) && Y_Lang.isObject(value) && !Y_Lang.isFunction(value) && !Y_Lang.isArray(value))
87 newstyles[key] = this._mergeStyles(value, b[key]);
91 newstyles[key] = value;
H A DStackedAxis.js34 key,
40 for(key in keys)
42 if(keys.hasOwnProperty(key))
44 len = Math.max(len, keys[key].length);
51 for(key in keys)
53 if(keys.hasOwnProperty(key))
55 num = keys[key][i];
H A DCategoryAxis.js33 * Object storing key data.
71 * Gets an array of values based on a key.
74 * @param {String} key Value key associated with the data array.
79 _getKeyArray: function(key, data)
94 labels[i] = obj[key];
96 this._indices[key] = keyArr;
101 * Sets data by key
104 * @param {String} key Key value to use.
108 _setDataByKey: function(key)
[all...]
/yui3/src/handlebars/js/
H A Dyui-handlebars-utils.js10 key;
12 for (key in error) {
13 if (error.hasOwnProperty(key)) {
14 this[key] = error[key];
/yui3/build/dataschema-json/
H A Ddataschema-json-debug.js125 * `key` : <strong>(required)</strong> The path locator (String)
138 array of objects with key:value pairs assuming the fields in
194 key: 'name',
198 key: 'price',
271 // Fall back to treat resultListLocator as a simple key
310 field, key, locator, path, parser, val,
317 key = field.key || field; // Find the key
318 locator = field.locator || key; // Fin
[all...]
/yui3/build/history-base/
H A Dhistory-base-debug.js37 * Initial state to set, as an object hash of key/value pairs. This will be
222 * key is the item key, and the value is an object containing
231 * Object hash of key/value pairs of all state items after the
237 * Object hash of key/value pairs of all state items before the
243 * Object hash of key/value pairs of state items that have been
271 * <code>undefined</code> value will cause that key to be removed from the
275 * @param {Object} state Object hash of key/value pairs.
302 * Adds a state entry with a new value for a single key. By default, the new
304 * existing value with the same key i
[all...]
/yui3/build/cache-offline/
H A Dcache-offline-debug.js131 var store = localStorage, key;
138 for (key in store) {
139 if (store.hasOwnProperty(key)) {
140 store.removeItem(key);
141 delete store[key];
187 if(localStorage.key(i).indexOf(this.get("sandbox")) === 0) {
207 if(localStorage.key(i).indexOf(sandbox) === 0) {
208 entries[i] = JSON.parse(localStorage.key(i).substring(sandbox.length));
253 var key,
257 key
[all...]
/yui3/src/dataschema/js/
H A Ddataschema-json.js123 * `key` : <strong>(required)</strong> The path locator (String)
136 array of objects with key:value pairs assuming the fields in
192 key: 'name',
196 key: 'price',
269 // Fall back to treat resultListLocator as a simple key
308 field, key, locator, path, parser, val,
315 key = field.key || field; // Find the key
316 locator = field.locator || key; // Fin
[all...]
/yui3/src/substitute/js/
H A Dsubstitute.js47 process each match. It receives the key,
49 the key inside of the braces.
57 function getAttrVal(key, value, name) {
61 if (key === "@") {
73 var i, j, k, key, v, meta, saved = [], token, dump,
86 //Extract key and meta info
88 key = token;
90 k = key.indexOf(SPACE);
92 meta = key.substring(k + 1);
93 key
[all...]
/yui3/build/datatable-sort-deprecated/
H A Ddatatable-sort-deprecated-debug.js81 * @description Describes last known sort state: {key,dir}, where
82 * "key" is column key and "dir" is either "asc" or "desc".
179 * @param val {String | Object} {key, dir} or "key"
180 * @return {key, dir, notdir}
185 val = { key: val, dir: "desc" };
190 { key: val.key, dir: "desc", notdir: "asc" } :
191 { key
[all...]
/yui3/src/event/tests/
H A Devent-key-tests.js1 YUI.add('event-key-tests', function(Y) {
3 Y.Node.prototype.key = function (keyCode, charCode, mods, type) {
57 var suite = new Y.Test.Suite("event-key");
60 name: "node.on('key',...)",
65 "test node.on('key', fn, '65')": function () {
69 input.on("key", function (e) {
77 input.key(65);
80 Y.Assert.areSame("key", type);
86 "test node.on('key', fn, '65', thisObj)": function () {
91 input.on("key", functio
[all...]
/yui3/src/history/js/
H A Dhistory-base.js35 * Initial state to set, as an object hash of key/value pairs. This will be
220 * key is the item key, and the value is an object containing
229 * Object hash of key/value pairs of all state items after the
235 * Object hash of key/value pairs of all state items before the
241 * Object hash of key/value pairs of state items that have been
269 * <code>undefined</code> value will cause that key to be removed from the
273 * @param {Object} state Object hash of key/value pairs.
300 * Adds a state entry with a new value for a single key. By default, the new
302 * existing value with the same key i
[all...]
/yui3/src/event/tests/src/
H A Devent-key.js1 Y.Node.prototype.key = function (keyCode, charCode, mods, type) {
55 var suite = new Y.Test.Suite("event-key");
58 name: "node.on('key',...)",
63 "test node.on('key', fn, '65')": function () {
67 input.on("key", function (e) {
75 input.key(65);
78 Y.Assert.areSame("key", type);
84 "test node.on('key', fn, '65', thisObj)": function () {
89 input.on("key", function (e) {
97 input.key(6
[all...]
/yui3/src/datatable-deprecated/js/
H A Ddatatable-sort.js94 * @description Describes last known sort state: {key,dir}, where
95 * "key" is column key and "dir" is either "asc" or "desc".
192 * @param val {String | Object} {key, dir} or "key"
193 * @return {key, dir, notdir}
198 val = { key: val, dir: "desc" };
203 { key: val.key, dir: "desc", notdir: "asc" } :
204 { key
[all...]
/yui3/build/dataschema-array/
H A Ddataschema-array-debug.js49 array of objects with key:value pairs assuming the fields in
59 * `key` : <strong>(required)</strong> The locator name (String)
97 key: 'fruit',
101 key: 'price',
156 result, item, type, field, key, value, i, j;
165 key = (!LANG.isUndefined(field.key)) ? field.key : field;
166 value = (!LANG.isUndefined(item[key])) ? item[key]
[all...]

Completed in 3150 milliseconds

123456