Hi all

How can I extend a plugin?
I like to extend the interface plugin.
Is this possible with something like:

jQuery.iSort.fn.extend(
  {jsonSortable: jsonSortable}
);

And use it like:

$(...).jsonSortable(
  $('#naviContainer'),
  {...Sortable...options...array},
  'a/callbackURL')
)

How do I implement such a extended method?

function jsonSortable(query, op, url) {
  o = op;
  o['onChange'] = genericJSONCallbackFunctionWrapper(url);
  query.Sortable(o);
}

Or can a plugin not get extended?

Regards
Roger Ineichen
_____________________________
END OF MESSAGE


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to