[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
XML encoding and decoding as XML nodes can't be JSON'ized XML nodes are encoded and decoded if the node is the value to be saved but not if it's as a property of another object Eg. - $.jStorage.set('key', xmlNode); // IS OK $.jStorage.set('key', {xml: xmlNode}); // NOT OK
File Size: | 986 lines (32 kb) |
Included or required: | 0 times |
Referenced: | 1 time |
Includes or requires: | 0 files |
_init() X-Ref |
Initialization function. Detects if the browser supports DOM Storage or userData behavior and behaves accordingly. |
_reloadData() X-Ref |
Reload data from storage when needed |
_setupObserver() X-Ref |
Sets up a storage change observer |
_storageObserver() X-Ref |
Fired on any kind of data change, needs to check if anything has really been changed |
_checkUpdatedKeys() X-Ref |
Reloads the data and checks if any keys are changed |
_fireObservers(keys, action) X-Ref |
Fires observers for updated keys param: {Array|String} keys Array of key names or a key param: {String} action What happened with the value (updated, deleted, flushed) |
_publishChange() X-Ref |
Publishes key change to listeners |
_load_storage() X-Ref |
Loads the data from the storage based on the supported mechanism |
_save() X-Ref |
This functions provides the 'save' mechanism to store the jStorage object |
_checkKey(key) X-Ref |
Function checks if a key is set and is string or numberic param: {String} key Key name |
_handleTTL() X-Ref |
Removes expired keys |
_handlePubSub() X-Ref |
Checks if there's any events on hold to be fired to listeners |
_fireSubscribers(channel, payload) X-Ref |
Fires all subscriber listeners for a pubsub channel param: {String} channel Channel name param: {Mixed} payload Payload data to deliver |
_dropOldEvents() X-Ref |
Remove old events from the publish stream (at least 2sec old) |
_publish(channel, payload) X-Ref |
Publish payload to a channel param: {String} channel Channel name param: {Mixed} payload Payload to send to the subscribers |
murmurhash2_32_gc(str, seed) X-Ref |
JS Implementation of MurmurHash2 SOURCE: https://github.com/garycourt/murmurhash-js (MIT licensed) author: <a href='mailto:[email protected]'>Gary Court</a> author: <a href='mailto:[email protected]'>Austin Appleby</a> param: {string} str ASCII only param: {number} seed Positive integer only return: {number} 32-bit positive integer hash |
F() X-Ref |
Returns a read-only copy of _storage return: {Object} Read-only copy of _storage |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |