This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* converted stringify() to jQuery plugin. | |
* serializes a simple object to a JSON formatted string. | |
* Note: stringify() is different from jQuery.serialize() which URLEncodes form elements | |
* UPDATES: | |
* Added a fix to skip over Object.prototype members added by the prototype.js library | |
* USAGE: | |
* jQuery.ajax({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Override .delegate() | |
* if 'selector' is an object loop over the object and call .live() for each item | |
* otherwise it call .live() just like the original .delegate(). | |
* Roughly similar to the way the map is implemented in .bind(). | |
*/ | |
$.fn.delegate = function(selector, types, data, fn) { | |
if (typeof selector === "object") { | |
for (var sel in selector) { | |
for (var type in selector[sel]) { |
NewerOlder