aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/ui/controller/array-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/montage/ui/controller/array-controller.js')
-rwxr-xr-xnode_modules/montage/ui/controller/array-controller.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/node_modules/montage/ui/controller/array-controller.js b/node_modules/montage/ui/controller/array-controller.js
index 868ae5de..f355efc1 100755
--- a/node_modules/montage/ui/controller/array-controller.js
+++ b/node_modules/montage/ui/controller/array-controller.js
@@ -519,9 +519,11 @@ var ArrayController = exports.ArrayController = Montage.create(ObjectController,
519 return null; 519 return null;
520 } 520 }
521 521
522 this._selectedObjects = this.content.filter(function(value, i) { 522 if(this.content) {
523 return this._selectedContentIndexes.indexOf(i) >= 0; 523 this._selectedObjects = this.content.filter(function(value, i) {
524 }, this); 524 return this._selectedContentIndexes.indexOf(i) >= 0;
525 }, this);
526 }
525 527
526 return this._selectedObjects; 528 return this._selectedObjects;
527 }, 529 },