Make fetch a no-up if already loaded

This commit is contained in:
Andrew Miner
2015-01-18 11:15:52 -08:00
parent d1621bb9f6
commit 28f762abe9
2 changed files with 6 additions and 5 deletions
+4 -1
View File
@@ -53,7 +53,10 @@ module.exports = class BaseModel extends Backbone.Model
# Backbone.Model Overrides #####################################################################
fetch: ->
fetch: (options={})->
options.force ?= false
return if (@isLoading or @isLoaded) and not options.force
url = @url()
logger.info "#{@constructor.name}.#{@cid} reading from url: #{url}"