comments for getValue method, fixes

This commit is contained in:
vitalets 2013-02-13 19:33:23 +04:00
parent b74e2b8b73
commit bdf036c2ef

@ -457,11 +457,14 @@ Makes editable any HTML element on the page. Applied as jQuery method.
return result;
/**
Returns current values of editable elements. If value is <code>null</code> or <code>undefined</code> it will not be returned
Returns current values of editable elements.
Note that it returns an **object** with name-value pairs, not a value itself. It allows to get data from several elements.
If value of some editable is `null` or `undefined` it is excluded from result object.
@method getValue()
@returns {Object} object of element names and values
@example
$('#username, #fullname').editable('validate');
$('#username, #fullname').editable('getValue');
// possible result:
{
username: "superuser",