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
| Em.AppGestureManager = Em.Object.extend({ | |
| _isBlocked: false, | |
| _blockerView: null, | |
| isBlocked: Em.computed(function(){ | |
| return this.get('_isBlocked'); | |
| }).property('_isBlocked'), |
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
| ScrollMixin = Em.Mixin.create({ | |
| didInsertElementEnd: function() { | |
| this._setup_dimensions(); | |
| this._super(); | |
| } | |
| .......... | |
| }); |
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
| 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 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
| {{#view Luh.Ui.TabMainView currentView="pane1"}} | |
| {{#view Luh.Ui.TabPaneView id="pane1" class="content" viewName="pane1"}} | |
| {{/view}} | |
| {{#view Luh.Ui.TabPaneView id="pane2" class="content" viewName="pane2"}} | |
| {{/view}} |
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
| (function(exports) { | |
| window.DS = SC.Namespace.create(); | |
| })({}); | |
| (function(exports) { | |
| DS.Adapter = SC.Object.extend({ | |
| commit: function(store, commitDetails) { |
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
| input "app" | |
| output "public" |
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
| 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 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
| App.BrandCategoriesView = Em.CollectionView.extend({ | |
| elementId: 'brand_categories', | |
| content: App.brandCategoriesController, | |
| selectedCategoryBinding: Em.Binding.oneWay('App.selectedCategoryController.content'), | |
| tagName: 'ul', | |
| itemViewClass: Em.View.extend( App.bTap, { | |
| classNameBindings: ['selected'], |
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
| Editor.Element = Em.Object.extend({ | |
| x: 0, | |
| y:0, | |
| witdth: 0, | |
| height: 0 | |
| }); | |
| // don't forget to use set / get for access the properties of the model | |
| Editor.elements = Em.ArrayController.create({ |
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
| 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({ |