#79
best refactorer
Simo Niemelä
No code submission,
10 refactorings,
jQuery.fn.restForm = function(type, options) {
var defaults = {
method: 'post',
...
// form fields
var address = $("#address");
var zip = $("#zip");
...
$('.answer_filter').change(function() {
var filter = $(this);
var select = $('#' + filter.attr('id'));
...
jQuery.fn.checkNext = function() {
if (this.is(':last-child') && this.is(':selected')) {
this.attr('selected', false).parent().children(':first').attr('selected', true);
...
<?php
function array_to_list($array, $separator = ',')
...
category_id = category_name.split("-").last
def capitalize_args(bind)
eval("local_variables", bind).each do |var|
var = eval(var, bind)
...
<?php
function remove_http($url)
...
public boolean hasOwnerShip()
...
dates = {
:mon => '9:00 - 20:00',
:tue => '9:00 - 20:00',
...