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
scripts = { | |
'_bootstrap': [ 'config', 'creators/inline', 'creators/themedui', 'editable', 'ckeditor', 'plugins', 'scriptloader', 'style', 'tools', /* The following are entries that we want to force loading at the end to avoid dependence recursion */ 'dom/comment', 'dom/elementpath', 'dom/text', 'dom/rangelist', 'skin' ], | |
'ckeditor': [ 'ckeditor_basic', 'dom', 'dtd', 'dom/document', 'dom/element', 'dom/iterator', 'editor', 'event', 'htmldataprocessor', 'htmlparser', 'htmlparser/element', 'htmlparser/fragment', 'htmlparser/filter', 'htmlparser/basicwriter', 'template', 'tools' ], | |
'ckeditor_base': [], | |
'ckeditor_basic': [ 'editor_basic', 'env', 'event' ], | |
'command': [], | |
'config': [ 'ckeditor_base' ], | |
'dom': [], | |
'dom/comment': [ 'dom/node' ], | |
'dom/document': [ 'dom/node', 'dom/window' ], |
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
and: [ | |
{firstName: 'John', lastName: 'Doe'}, | |
function () { return true } | |
] |
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
App.myFunView = SC.View.extend({ | |
triggerABinding: function () { | |
console.log('huzzah!') | |
}, | |
createChildViews: function () { | |
var cvs = [], cv; | |
cv = this.createChildView(SC.ButtonView,{ |
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.someArrayController = SC.ArrayController.create({ | |
someAction: function (x,y) { | |
var sel = this.getPath('selection'); | |
} | |
}); | |
// parent view code | |
something: SC.ListView.extend({ | |
contentBinding: 'YourApp.someArrayController.content', | |
selectionBinding: SC.Binding.from('YourApp.someArrayController.selection').single(), |
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
/** | |
<div id='range'> | |
<div id='cell-thing'></div> | |
</div> | |
**/ | |
ShaderState = SC.State.design({ | |
initialSubState: 'firstState', | |
jumpToFirst: function () { |
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.View.extend({ | |
displayProperties: 'content'.w(), | |
mouseDown: function (evt) { | |
var target = evt.originalTarget || evt.target; | |
if (target.id === 'my-fake-button') { | |
// send an event | |
} | |
}, |
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); |
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
#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; |
NewerOlder