in partnership with mediatemple

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
Files:
1 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