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
-> % grunt exec | |
Running "exec:server" (exec) task | |
>> DEBUG: Running node-supervisor with | |
>> DEBUG: program 'src/server/main.coffee' | |
>> DEBUG: --watch '.' | |
>> DEBUG: --ignore 'undefined' | |
>> DEBUG: --extensions 'node|js|coffee|litcoffee' | |
>> DEBUG: --exec 'coffee' |
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
someSceneViewThing: SC.View.extend({ | |
childViews: 'tab'.w(), | |
tab: SC.TabView.extend({ | |
layout: { left: 10, top: 10, right: 10, bottom: 10 }, | |
nowShowingBinding: 'yourApp.path.nowShowing', | |
items: [ { title: "_Title".loc(), value: 'yourApp.path'}, | |
{ title: "_Title".loc(), value: 'yourApp.path'}, | |
{ title: "_Title".loc(), value: 'yourApp.path'} ], | |
itemTitleKey: 'title', | |
itemValueKey: 'value', |
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
YourCustomView = SC.View.extend({ | |
yourArrayOfContent: [], | |
contentKey: 'foo', | |
createChildViews: function () { | |
var key = this.get('contentKey'); | |
var kids = this.get('yourArrayOfContent'); | |
var self = this; | |
var childViews = []; |
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: FamilyTies.Family | |
// Copyright: ©2010 My Company, Inc. | |
// ========================================================================== | |
/*globals FamilyTies */ | |
/** @class | |
(Document your Model here) |
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 person = SC.Object.create({ | |
firstName: 'John', | |
lastName: 'Smith', | |
fullName: function () { | |
var first = this.get('firstName'); | |
var last = this.get('lastName'); | |
return '%@ %@'.fmt(first,last); | |
}.property('firstName','lastName').cacheable() | |
}); | |
person.get('firstName'); // 'John' |
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 fr = YourApp.getPath('bodyPage.mainPane.firstResponder'); | |
if (fr && fr.commitEditing) { fr.commitEditing(); } |
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
YourApp.yourController.create({ | |
myNewAction: function (view,somethingThatIcannotRemember) { | |
console.log('woo'); | |
} | |
}); | |
SC.ButtonView.design({ | |
target: YourApp.yourController, | |
action: 'myNewAction' | |
}) |
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
#header,#header-bottom,.dashboard-item-header h3 {background-color: #2d729e !important;} | |
#header-bottom {border-top: none;} | |
#header-bottom #main-nav li.aui-dd-parent {background-color: #003f67;} | |
.aui-dd-parent span.drop-wrap a.drop | |
{ | |
display: block !important; |
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
SC.ListItem.extend({ | |
contentBinding: SC.Binding.from('YourApp.yourDynamicArrayController'), | |
exampleView: YourApp.CustomListItemView.extend({ | |
staticDataBinding: SC.Binding.oneWay('YourApp.yourStaticDataController') | |
}) | |
}) | |
YourApp.CustomListItemView = SC.ListItemView.extend({ | |
staticData: null, |
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 CompanySchema = new CoreRecord({ | |
name: String, | |
ips: [String], | |
reports: [{type: CoreRecord.ObjectId, ref: 'Report'}] | |
}); | |
exports.Company = CoreScrappy.model('Company',CompanySchema); |
OlderNewer