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
menuView: SC.MenuPane.design({ | |
layout: { top: 63, left: 0, right: 0, height: 36 }, | |
items: [SC.Object.create({ | |
title: 'Foo', | |
isEnabled: YES | |
}), | |
SC.Object.create({ | |
title: 'Bar', | |
isEnabled: YES | |
})] |
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
// ========================================================================== | |
// Project: EccapCalc.LedgerView | |
// Copyright: ©2009 Westside Consulting LLC | |
// ========================================================================== | |
/*globals EccapCalc */ | |
/** @class | |
This is a reusable view that is meant to be instantiated from the function | |
EccapCalc.createLedgerView(x, y, w, h, title, arrayController). |
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
var q = SC.Query.local(YouTube.Video, "playlist_id="+playlist_id,{ parameters: opts }); | |
// var q = SC.Query.local(YouTube.Video,{ params: opts }); | |
var entries = UQ.store.find(q); | |
UQ.queueController.set('content',entries); |
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
NPR.ArticleListItem = SC.View.extend({ | |
content: null, | |
displayProperties: 'content'.w(), | |
render: function(context,firstTime) { | |
context.push("HERE!!"); | |
return sc_super(); | |
} | |
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
image: function(){ | |
var c = this.get('content'); | |
if(!c) return; | |
return c.image[0].src; | |
}.property('image').cacheable(), |
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
teaser: function(){ | |
var c = this.readAttribute('teaser'); | |
if(!c) return; | |
return c.$text; | |
}.property('teaser').cacheable(), |
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
NPR.HTMLView = SC.View.extend({ | |
childViews: 'article'.w(), | |
article: SC.View.extend(SC.StaticLayout, { | |
useStaticLayout: YES, | |
classNames: 'content-box'.w(), | |
htmlContent: '', | |
htmlContentBinding: '.owner.htmlContent', | |
displayProperties: 'htmlContent'.w(), |
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
NPR.HTMLView = SC.View.extend({ | |
childViews: 'article'.w(), | |
htmlContent: '', | |
article: SC.View.extend(SC.StaticLayout, { | |
useStaticLayout: YES, | |
classNames: 'content-box'.w(), | |
htmlContent: '', | |
htmlContentBinding: '*owner.htmlContent', |
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
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)); |
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
// ========================================================================== | |
// Project: VideoApp - mainPage | |
// Copyright: ©2009 Apple Inc. | |
// ========================================================================== | |
/*globals VideoApp */ | |
sc_require('views/controls'); | |
sc_require('views/videoProperties'); | |
VideoApp.videoURL = 'http://mirror.cessen.com/blender.org/peach/trailer/trailer_iphone.m4v'; |
OlderNewer