This file contains hidden or 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
#!/bin/sh | |
# | |
# Deploys documentation | |
getGitBranchName() | |
{ | |
branch="$(git symbolic-ref HEAD 2>/dev/null)" || | |
"$(git describe --contains --all HEAD)" | |
echo ${branch##refs/heads/} | |
} |
This file contains hidden or 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
test("inheritance is taken into account for related records", function () { | |
MyApp.Family = SC.Record.extend({ | |
people: SC.Record.toMany('MyApp.Person', { | |
inverse: 'family', | |
isMaster: NO | |
}) | |
}); | |
MyApp.Person = SC.Record.extend({ | |
family: SC.Record.toOne('MyApp.Family', { |
This file contains hidden or 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: MO - loginPage | |
// Copyright: ©2010 Junction Networks | |
// ========================================================================== | |
/*globals MO */ | |
// This page describes the main user interface for your application. | |
MO.loginPane = SC.Pane.create({ | |
layout: { top: 0, bottom: 0, left: 0, right: 0 }, | |
childViews: 'contentView'.w(), |
This file contains hidden or 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
MyApp = window.MyApp = {}; | |
MyApp.store = SC.Store.create(); | |
MyApp.Message = SC.Record.extend({ | |
init: function () { | |
this.normalize(); | |
return sc_super(); | |
}, | |
to: SC.Record.attr(String), |
This file contains hidden or 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
MyApp.DataSource = SC.DataSource.extend({ | |
fetch: function (store, query) { | |
var recordType = query.recordType, | |
guid = SC.guidFor(recordType); | |
if (guid === SC.guidFor(MyApp.FooRecord)) { | |
// handle Foo records here | |
return YES; | |
} else if (guid === SC.guidFor(MyApp.BarRecord)) { |
This file contains hidden or 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 MyApp = window.MyApp = SC.Object.create(); | |
MyApp.mixin(SC.StatechartManager, { | |
trace: YES, | |
initialState: 'stateA', | |
stateA: SC.State.design({ | |
substatesAreConcurrent: YES, | |
stateC: SC.State.design({ | |
initialSubstate: 'stateD', |
This file contains hidden or 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
MyApp.Person = SC.Record.extend({ | |
name: SC.Record.attr(String), | |
family: SC.Record.toOne(MyApp.Family, | |
inverse: 'people', | |
isMaster: YES | |
}) | |
}); | |
MyApp.Family = SC.Record.extend({ | |
name: SC.Record.attr(String), |
This file contains hidden or 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
diff --git a/frameworks/core_foundation/resources/core.css b/frameworks/core_foundation/resources/core.css | |
index 821d88c..3aca696 100644 | |
--- a/frameworks/core_foundation/resources/core.css | |
+++ b/frameworks/core_foundation/resources/core.css | |
@@ -6,6 +6,17 @@ | |
-webkit-tap-highlight-color: rgba(0,0,0,0); | |
} | |
+#sc-scroller { | |
+ position: absolute; |
This file contains hidden or 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
MyApp = {}; | |
MyApp.ContainerView = SC.ContainerView.extend({ | |
nowShowing: 'MyApp.GreetingView', | |
init: function () { | |
var ret = arguments.callee.base.apply(this, arguments); | |
// I need this line ------------. | |
// to have `nowShowing` update v | |
// this.notifyPropertyChange('nowShowing'); |
This file contains hidden or 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
MO.SelectableListItemView = SC.View.extend( | |
/** @scope MO.SelectableListItemView.prototype */{ | |
/** | |
@type SC.Hash | |
@default { bottom: 1 } | |
@see SC.View#border | |
*/ | |
border: { bottom: 1 }, |
OlderNewer