How about this?

```js
var toAdd = "ui-icon ui-icon-background ui-corner-all ";
if ( this.element.is( ":checked" ) && this.type === "checkbox" ) {
	toAdd += "ui-icon-check";
} else {
	toAdd += "ui-icon-blank";
}
this.icon.addClass( toAdd );
```