Source: Window_ShopSell.js

Window_ShopSell.js

//-----------------------------------------------------------------------------
// Window_ShopSell
//
// The window for selecting an item to sell on the shop screen.
/**
 * The window for selecting an item to sell on the shop screen.
 *
 * @class
 * @extends Window_ItemList
 */
function Window_ShopSell() {
    this.initialize(...arguments);
}

Window_ShopSell.prototype = Object.create(Window_ItemList.prototype);
Window_ShopSell.prototype.constructor = Window_ShopSell;

Window_ShopSell.prototype.initialize = function(rect) {
    Window_ItemList.prototype.initialize.call(this, rect);
};

/**
 * Check if the given item is enabled
 *
 * @param {Object} item - The item object to check
 * @return {boolean} True if enabled
 */
Window_ShopSell.prototype.isEnabled = function(item) {
    return item && item.price > 0;
};