Step 1 in converting to a Backbone-based website
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
###
|
||||
# Crafting Guide - item.coffee
|
||||
#
|
||||
# Copyright (c) 2014 by Redwood Labs
|
||||
# All rights reserved.
|
||||
###
|
||||
|
||||
BaseModel = require './base_model'
|
||||
|
||||
########################################################################################################################
|
||||
|
||||
module.exports = class Item extends BaseModel
|
||||
|
||||
constructor: (attributes={}, options={})->
|
||||
attributes.name ?= ''
|
||||
attributes.quantity ?= 1
|
||||
super attributes, options
|
||||
|
||||
# Public Methods ###############################################################################
|
||||
Reference in New Issue
Block a user