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
| Yn.IsScrollVisible = Em.Mixin.create({ | |
| scrollVisibleId: null, | |
| isScrollVisible: false, | |
| didInsertElement: function() { | |
| this._super(); | |
| var scroll = $(this.scrollVisibleId); |
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
| config = ( !ENV['APP_ENV'].nil? && !ENV['APP_ENV'].empty? ) ? ENV['APP_ENV'] : "default" | |
| match "app/config/**/#{config}.js" do | |
| minispade :rewrite_requires => true, :string=> false, :module_id_generator => proc { |input| | |
| id = input.path.dup | |
| id.sub!(/\/[a-z\-\.]+.js$/, '') #filter file.js name | |
| id | |
| } |
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
| elementId: Ember.computed(function(key, value) { | |
| return value !== undefined ? value : Ember.guidFor(this); | |
| }).cacheable(), | |
| _elementIdDidChange: Ember.beforeObserver(function() { | |
| throw "Changing a view's elementId after creation is not allowed."; | |
| }, 'elementId'), |
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 = Em.Application.create({ | |
| customEvents: { | |
| webkitTransitionEnd: 'transitionEnd' | |
| } | |
| }); | |
| Em.View.extend({ | |
| transitionEnd: function(event) { |
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 getBindingValue = function(context, options, path) { | |
| var normalized = Ember.Handlebars.normalizePath(null, path, options.data), | |
| thisContext; | |
| if (normalized.isKeyword) { | |
| thisContext = normalized.root; | |
| } else if (!Ember.isGlobalPath(path)) { | |
| thisContext = context; | |
| } else { |
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
| Yn.Store = DS.Store.extend({ | |
| revision: 4, | |
| serverDomain: "", | |
| adapter: Yn.DjangoTastypieAdapter.create({ | |
| }), | |
| cleanRecordCache: function(type) { | |
| var typeMaps = this.get('typeMaps'); |
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
| Yn.DjangoTastypieAdapter = DS.DjangoTastypieAdapter.extend({ | |
| /* | |
| * API credential to be inserted in the ajax requests | |
| */ | |
| authHeader: null, | |
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
| reload: function(record, query, rollback ) { | |
| if ( record.get('isDirty') ) { | |
| if ( rollback === true ) { | |
| // this will rollback the record to the last loaded values in the | |
| // store | |
| record.send('rollback'); |