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.FirstModel = DS.Model.extend({ | |
foreignUnsorted: function() { | |
return App.store.filter(App.ForeignModel, function(hash) { | |
return false; | |
}); | |
}.property().cacheable(), | |
foreign: function() { | |
var foreignUnsorted = this.get('foreignUnsorted'); | |
return foreignUnsorted.toArray().sort(function(a,b) { |
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
require('app/app'); | |
var get = Ember.get , set = Ember.set, setPath = Ember.setPath, getPath = Ember.getPath; | |
// Tab View was created because a general Tab did not | |
// work because the flip animation | |
// with z-index opacity feature won't work, because it shows the hidden z-index panels | |
App.TabMainView = Ember.Mixin.create({ |
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
update: | |
rm -rf packages/*; \ | |
cp -pr ~/Git/forks/ember.js/packages/* ./packages; \ | |
cp -pr ~/Git/forks/sproutcore-touch/packages/ember-touch ./packages; \ | |
cp -pr ~/Git/emberjs/ember-mk/packages/ember-mk ./packages | |
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.CarouselView = Em.CollectionView.extend(Luh.Ui.ScrollMixin, { | |
scrollOptions: { | |
hScroll: true, | |
vScroll: false, | |
duration: 500, | |
velocity: 0.1, | |
simultaneously: true, | |
initThreshold: 10*ScreenFactor | |
}, |
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
ScrollMixin = Em.Mixin.create({ | |
didInsertElementEnd: function() { | |
this._setup_dimensions(); | |
this._super(); | |
} | |
.......... | |
}); |
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
.swipe_item { | |
position: absolute; | |
-webkit-transform: translateZ(0); | |
top: 0px; | |
height: 100%; | |
width: 100%; | |
} | |
.swipe_slider { | |
position: relative; |
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
UI.Kit.ScrollableView = SC.CollectionView.extend({ | |
// options | |
animationDuration: 1000, | |
easing: "easeOutExpo", | |
// must be set ( pixels available) to provide elastic scroll | |
scrollableHeight: 0, | |
// options elastic |
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
Em.View.reopen({ | |
hammerOptions: null, | |
enableHammer: function() { | |
var gestures = ['drag', 'hold', 'release', 'swipe', 'tap', 'touch', 'transform']; | |
var options = this.get('hammerOptions'); | |
if ( options ) { | |
gestures.forEach(function(gesture) { | |
if ( !options[gesture] ) { |
NewerOlder