Skip to content

Instantly share code, notes, and snippets.

@dlitvakb
Created March 9, 2012 16:18
Show Gist options
  • Select an option

  • Save dlitvakb/2007324 to your computer and use it in GitHub Desktop.

Select an option

Save dlitvakb/2007324 to your computer and use it in GitHub Desktop.
render_mismatch: function (self, mismatch_type, default_value) {
return (self['has_' + mismatch_type + '_mismatch']()) ?
self['get_' + mismatch_type + '_diff']() :
default_value;
},
render_name_mismatch: function () {
return this.render_mismatch(this, 'name', this.name);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment