Created
July 14, 2015 14:12
-
-
Save mrios/026da368350284ab720f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
, setListadoPracticas: function(ps) { | |
listado_practicas = ps | |
} | |
, getListadoPracticas: function() { | |
return listado_practicas | |
} | |
, getListadoPracticasBloqueantes: function() { | |
var capitulos | |
= ['arcadainferior','arcadasuperior'] | |
var result | |
= [] | |
return _.map(capitulos, function(capitulo,i) { | |
capitulo = _.pick(listado_practicas,'capitulo') | |
_.map(capitulo, function(el2,i2){ | |
return el2 | |
result.push( | |
_.filter(el2.practicas, function(el3,i3) { | |
return el3 | |
}) | |
) | |
}) | |
}) | |
return result | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment