Skip to content

Instantly share code, notes, and snippets.

@jtaby
Created April 17, 2010 16:04
Show Gist options
  • Save jtaby/369643 to your computer and use it in GitHub Desktop.
Save jtaby/369643 to your computer and use it in GitHub Desktop.
var _cv = this.get('contentView');
view = _cv;
var outerCV = this.get('outerContentView');
outerCV.adjust('width',len * objectWidth);
var v = null;
for (var i = len - 1; i >= 0; i--){
// console.log("stories.objectAt(i) = "+stories.objectAt(i));
v = view.create({
layout : {top:0,left:(i * objectWidth),bottom:0,width:objectWidth},
classNames: 'story-in-detail'.w()
});
v.set('content',stories.objectAt(i));
outerCV.appendChild(v);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment