define('application/formatters/landscapeasset', [
'antie/formatter',
'antie/iterator',
'application/widgets/replay/asset'
], function (
Formatter,
Iterator,
Asset
) {
'use strict';
return Formatter.extend({
/**
* Formats the widget.
*
* @param {Object|Iterator} item - The item.
* @returns {Object} - The formatted widget.
*/
format: function (item) {
var button;
if (item instanceof Iterator) {
item = item.next();
}
button = new Asset({
item: item,
type: 'landscape'
});
return button;
}
});
});