tags:

views:

173

answers:

1

Anyone see potential problems with optimizing away unnecessary ajax requests like this:

$('.editable').editable(function(value, settings)
{
  // check if changed at all
  if(this.revert == value)
  {
    this.reset()
    return
  }

  ... fire ajax request
}
A: 

looks good to me.