in partnership with mediatemple

Changeset 1514

Show
Ignore:
Timestamp:
03/25/08 06:57:04 (2 months ago)
Author:
kamicane
Message:
  • minor cleanup
  • added documentation for Element:store and Element:retrieve
  • fixed #933
Location:
trunk
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/Docs/Element/Element.md

    r1505 r1514  
    13481348 
    13491349        <a></a> 
     1350         
     1351 
     1352Element Method: store {#Element:store} 
     1353-------------------------------------------------------- 
     1354 
     1355Stores an item in the Elements Storage, linked to this Element. 
     1356 
     1357 
     1358### Syntax: 
     1359 
     1360        myElement.store(key, value); 
     1361 
     1362### Arguments: 
     1363 
     13641. key - (*string*) The key you want to assign to the stored value. 
     13652. 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 
     1376Element Method: retrieve {#Element:retrieve} 
     1377-------------------------------------------------------- 
     1378 
     1379Retrieves a value from the Elements storage 
     1380 
     1381 
     1382### Syntax: 
     1383 
     1384        myElement.retrieve(key); 
     1385 
     1386### Arguments: 
     1387 
     13881. 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 
    13501399 
    13511400 
  • trunk/Docs/Fx/Fx.Morph.md

    r1334 r1514  
    9797### Arguments: 
    9898 
    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. 
     991. 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. 
    100101 
    101102### Returns: 
  • trunk/Source/Fx/Fx.CSS.js

    r1511 r1514  
    7373 
    7474        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]; 
    7776                var to = {}; 
    7877                Array.each(document.styleSheets, function(sheet, j){ 
     
    9392                        }); 
    9493                }); 
    95                 Fx.CSS.Cache[selector] = to; 
    96                 return to; 
     94                return Fx.CSS.Cache[selector] = to; 
    9795        } 
    9896 
  • trunk/Source/Plugins/Fx.Slide.js

    r1485 r1514  
    6565                var caseOut = [[margin, layout], [-this.offset, 0]]; 
    6666                var start; 
    67                 switch(how){ 
     67                switch (how){ 
    6868                        case 'in': start = caseIn; break; 
    6969                        case 'out': start = caseOut; break; 
     
    122122                how = how || 'toggle'; 
    123123                var slide = this.get('slide'), toggle; 
    124                 switch(how){ 
     124                switch (how){ 
    125125                        case 'hide': slide.hide(mode); break; 
    126126                        case 'show': slide.show(mode); break; 
  • trunk/Source/Plugins/Tips.js

    r1485 r1514  
    1818                        tip.setStyle('visibility', 'hidden'); 
    1919                }, 
    20                 maxTitleChars: 30, 
    2120                showDelay: 100, 
    2221                hideDelay: 100, 
  • trunk/Source/Request/Request.js

    r1488 r1514  
    113113                var data = options.data, url = options.url, method = options.method; 
    114114 
    115                 switch($type(data)){ 
     115                switch ($type(data)){ 
    116116                        case 'element': data = $(data).toQueryString(); break; 
    117117                        case 'object': case 'hash': data = Hash.toQueryString(data); 
     
    142142                                this.xhr.setRequestHeader(key, value); 
    143143                                return true; 
    144                         }.bind(this))) this.fireEvent('onException', [e, key, value]); 
     144                        }.bind(this))) this.fireEvent('onException', [key, value]); 
    145145                }, this); 
    146146