Skip to content

Instantly share code, notes, and snippets.

SC.Store.reopen({
flush: function(original){
var changes = this.recordPropertyChanges,
storeKeys = changes.storeKeys,
hasDataChanges = changes.hasDataChanges,
records = changes.records;
storeKeys.forEach(function (storeKey) {
if (records.contains(storeKey)) {
statusOnly = hasDataChanges.contains(storeKey) ? NO : YES;
@rcatalano
rcatalano / Test
Last active August 29, 2015 13:59
ParentRecord = SC.Record.extend({
name: SC.Record.attr(String),
children: SC.Record.toMany('ChildRecord', { isNested: YES }),
isLoadedDidChange: function(){
console.log('Parent loaded?', this.get('isLoaded'));
}.observes('isLoaded')
});
ChildRecord = SC.Record.extend({
name: SC.Record.attr(String),
scanning done for sproutcore:bootstrap
21 Apr 15:53:48 - Evaluation error in undefined:[TypeError: Cannot set property 'verbose' of undefined]
21 Apr 15:53:48 - error.errorcode: 'Cannot set property \'verbose\' of undefined'
21 Apr 15:53:48 - error caught: { [TypeError: Cannot set property 'verbose' of undefined]
[stack]: [Getter/Setter],
[arguments]: [ 'verbose', undefined, [length]: 2 ],
[type]: 'non_object_property_store',
[message]: [Getter/Setter] }
/Users/richcatalano/getting-started/node_modules/sproutcore/index.js:65
{
"private": true,
"dependencies": {
"build-tools": "git://github.com/sproutcore/build-tools.git"
}
}
BT.addTheme(BT.Theme.extend({
ref: "evelyn",
path: __dirname + '/themes/evelyn'
}));
BT.addTheme(BT.Theme.extend({
ref: 'pastel',
path: __dirname + '/themes/pastel',
css_theme: 'pastel'
}));
error when parsing sass in /Users/richcatalano/main/themes/pastel/resources/theme_styles.css
line in error (101)
line: 91:
line: 92: .sc-button-label {
line: 93: height: 30px;
line: 94: }
line: 95: }
line: 96: }
line: 97: }
line: 98: }
23 Apr 14:30:55 - sc_require is called from /Users/richcatalano/main/sc_config
23 Apr 14:30:55 - file /Users/richcatalano/main/frameworks/pastel/sc_config.js doesn't seem to exist
23 Apr 14:30:55 - Evaluation error in /Users/richcatalano/main/sc_config:[TypeError: Cannot read property 'isError' of undefined]
23 Apr 14:30:55 - error.errorcode: 'Cannot read property \'isError\' of undefined'
23 Apr 14:30:55 - error caught: { [TypeError: Cannot read property 'isError' of undefined]
[stack]: [Getter/Setter],
[arguments]: [ 'isError', undefined, [length]: 2 ],
[type]: 'non_object_property_load',
[message]: [Getter/Setter],
isError: true }
isEnabledBinding: SC.Binding.and(
SC.Binding.and(
SC.Binding.notEmpty('Eve.loginController.username', NO),
SC.Binding.notEmpty('Eve.loginController.password', NO)
),
'Eve.loginController.loginButtonEnabled'
)
Building targets: /orca
Building languages: en
FATAL 12:12:38.002 ~ java.io.FileNotFoundException: \main\51Sources\resources\webfiles\static\orca\en\7.0.0build20140508\javascript-packed.js:\main\51Sources\resources\webfiles\static\orca\en\7.0.0build20140508\javascript-packed.js (The specified path is invalid)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at com.yahoo.platform.yui.compressor.YUICompressor.main(YUICompressor.java:183)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
_poolLayoutForContentIndex: function(){
var ret = sc_super();
if(ret.bottom && (ret.top === 0) && ret.height)
delete ret.top;
return ret;
},