Skip to content

Commit

Permalink
slicer-chunk: fix refreshing of triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
mmckegg committed Jun 2, 2016
1 parent 41898bc commit 1e504c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/base-chunk.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var extend = require('xtend/mutable')

module.exports = BaseChunk

function BaseChunk (context, extraProperties) {
function BaseChunk (context, extraProperties, opts) {

var obs = ObservStruct(extend({
id: Observ(),
Expand Down Expand Up @@ -83,7 +83,7 @@ function BaseChunk (context, extraProperties) {
var length = shape[0] * shape[1]
var result = []
for (var i=0;i<length;i++){
if (obs.getSlot(String(i))) {
if (obs.getSlot(String(i)) || (opts && opts.includedAllTriggers)) {
result.push(String(i))
} else {
result.push(null)
Expand Down
2 changes: 2 additions & 0 deletions nodes/slicer-chunk/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ function SlicerChunk (parentContext) {
outputs: Property(['output']),
routes: ExternalRouter(context, {output: '$default'}),
volume: Property(1)
}, {
includedAllTriggers: true
})

var releaseMixerParams = applyMixerParams(obs)
Expand Down

0 comments on commit 1e504c3

Please sign in to comment.