- Compare with: https://gist.github.com/timanrebel/5643468
- Read more at: http://fokkezb.nl/2013/05/27/bind-existing-model
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
Show hidden characters
{ | |
"browser": true, | |
"camelcase": true, | |
"curly": true, | |
"eqeqeq": true, | |
"expr": true, | |
"immed": true, | |
"indent": 4, | |
"latedef": "nofunc", | |
"newcap": 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
'Label[platform=android]': { | |
color: '#000' // all platforms except Android default to black | |
} | |
'Window': { | |
backgroundColor: '#fff' // white background instead of default transparent | |
} | |
'Window[platform=android]': { | |
modal: false // make android windows all heavyweight |
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
function isProduction(alloyConfig) | |
{ | |
return 'production' == alloyConfig.deployType; | |
} | |
function removeUnimportantLogCallsFromContent(content) | |
{ | |
if (!content) { | |
return; | |
} |
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
// Alloy doesn't listen to changes, so we do: | |
$model.on('change', function (model) { | |
$.name.text = model.get('name'); | |
}); |