Fix scripts and tests

* Fix the reformat script to work with recent changes
* Fix the convert-nei-dump script to remove leading and trailing '_'
* Fix various broken tests
This commit is contained in:
Andrew Miner
2015-01-21 15:05:19 -08:00
parent 3edba072d0
commit e612cedf8d
10 changed files with 46 additions and 31 deletions
@@ -42,13 +42,14 @@ module.exports = class ModPageController extends BaseController
recipe = item.getPrimaryRecipe()
return if not recipe
controller = @_recipeControllers[controllerIndex]
if not controller?
_.delay (=> @_createRecipeController recipe), delay
delay += @_delayStep
else
controller.model = recipe
controllerIndex += 1
item.eachRecipe (recipe)=>
controller = @_recipeControllers[controllerIndex]
if not controller?
_.delay (=> @_createRecipeController recipe), delay
delay += @_delayStep
else
controller.model = recipe
controllerIndex += 1
else
@$recipes.hide duration:Duration.fast