Changeset 1514
- Timestamp:
- 03/25/08 06:57:04 (2 months ago)
- Location:
- trunk
- Files:
-
- 6 modified
-
Docs/Element/Element.md (modified) (1 diff)
-
Docs/Fx/Fx.Morph.md (modified) (1 diff)
-
Source/Fx/Fx.CSS.js (modified) (2 diffs)
-
Source/Plugins/Fx.Slide.js (modified) (2 diffs)
-
Source/Plugins/Tips.js (modified) (1 diff)
-
Source/Request/Request.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Docs/Element/Element.md
r1505 r1514 1348 1348 1349 1349 <a></a> 1350 1351 1352 Element Method: store {#Element:store} 1353 -------------------------------------------------------- 1354 1355 Stores an item in the Elements Storage, linked to this Element. 1356 1357 1358 ### Syntax: 1359 1360 myElement.store(key, value); 1361 1362 ### Arguments: 1363 1364 1. key - (*string*) The key you want to assign to the stored value. 1365 2. value - (*mixed*) Any value you want to store. 1366 1367 ### Returns: 1368 1369 * (*element*) This Element. 1370 1371 ### Example: 1372 1373 $('element').store('someProperty', someValue); 1374 1375 1376 Element Method: retrieve {#Element:retrieve} 1377 -------------------------------------------------------- 1378 1379 Retrieves a value from the Elements storage 1380 1381 1382 ### Syntax: 1383 1384 myElement.retrieve(key); 1385 1386 ### Arguments: 1387 1388 1. key - (*string*) The key you want to retrieve from the storage. 1389 1390 ### Returns: 1391 1392 * (*mixed*) The value linked to the key. 1393 1394 ### Example: 1395 1396 $('element').retrieve('someProperty'); // returns someValue (see example above) 1397 1398 1350 1399 1351 1400 -
trunk/Docs/Fx/Fx.Morph.md
r1334 r1514 97 97 ### Arguments: 98 98 99 1. properties - (*mixed*) An *object* of key/value pairs of CSS attributes to change or a *string* representing a CSS selector which can be found within the CSS of the page. If only one value is given for any CSS property, the transition will be from the current value of that property to the value given. 99 1. properties - (*mixed*) An *object* of key/value pairs of CSS attributes to change or a *string* representing a CSS selector which can be found within the CSS of the page. 100 If only one value is given for any CSS property, the transition will be from the current value of that property to the value given. 100 101 101 102 ### Returns: -
trunk/Source/Fx/Fx.CSS.js
r1511 r1514 73 73 74 74 search: function(selector){ 75 var cache = Fx.CSS.Cache[selector]; 76 if (cache) return cache; 75 if (Fx.CSS.Cache[selector]) return Fx.CSS.Cache[selector]; 77 76 var to = {}; 78 77 Array.each(document.styleSheets, function(sheet, j){ … … 93 92 }); 94 93 }); 95 Fx.CSS.Cache[selector] = to; 96 return to; 94 return Fx.CSS.Cache[selector] = to; 97 95 } 98 96 -
trunk/Source/Plugins/Fx.Slide.js
r1485 r1514 65 65 var caseOut = [[margin, layout], [-this.offset, 0]]; 66 66 var start; 67 switch (how){67 switch (how){ 68 68 case 'in': start = caseIn; break; 69 69 case 'out': start = caseOut; break; … … 122 122 how = how || 'toggle'; 123 123 var slide = this.get('slide'), toggle; 124 switch (how){124 switch (how){ 125 125 case 'hide': slide.hide(mode); break; 126 126 case 'show': slide.show(mode); break; -
trunk/Source/Plugins/Tips.js
r1485 r1514 18 18 tip.setStyle('visibility', 'hidden'); 19 19 }, 20 maxTitleChars: 30,21 20 showDelay: 100, 22 21 hideDelay: 100, -
trunk/Source/Request/Request.js
r1488 r1514 113 113 var data = options.data, url = options.url, method = options.method; 114 114 115 switch ($type(data)){115 switch ($type(data)){ 116 116 case 'element': data = $(data).toQueryString(); break; 117 117 case 'object': case 'hash': data = Hash.toQueryString(data); … … 142 142 this.xhr.setRequestHeader(key, value); 143 143 return true; 144 }.bind(this))) this.fireEvent('onException', [ e,key, value]);144 }.bind(this))) this.fireEvent('onException', [key, value]); 145 145 }, this); 146 146