MCPcopy Create free account
hub / github.com/codecombat/codecombat / fillOptions

Method fillOptions

app/models/ThangType.js:171–178  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

169 }
170
171 fillOptions (options) {
172 if (options == null) { options = {} }
173 options = _.clone(options)
174 if (options.resolutionFactor == null) { options.resolutionFactor = window.SPRITE_RESOLUTION_FACTOR }
175 if (options.async == null) { options.async = false }
176 options.thang = null // Don't hold onto any bad Thang references.
177 return options
178 }
179
180 buildSpriteSheet (options) {
181 this.options = this.fillOptions(options)

Callers 2

buildSpriteSheetMethod · 0.95
getPortraitStageMethod · 0.95

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected