Skip to content

Instantly share code, notes, and snippets.

View mixonic's full-sized avatar

Matthew Beale mixonic

View GitHub Profile
@mixonic
mixonic / ember-data.js
Last active December 11, 2015 10:58
Builds of Ember master
(function() {
window.DS = Ember.Namespace.create({
// this one goes to 11
CURRENT_API_REVISION: 11
});
})();
commit 3fb6fb00626201fd096b2d8313178e393e0b5903
Author: Matthew Beale <[email protected]>
Date: Fri Jan 25 14:15:57 2013 -0500
Add tests for #1866 - loc helper
diff --git a/packages/ember-handlebars/lib/helpers/loc.js b/packages/ember-handlebars/lib/helpers/loc.js
index d2d1f8b..7b023f5 100644
--- a/packages/ember-handlebars/lib/helpers/loc.js
+++ b/packages/ember-handlebars/lib/helpers/loc.js
// Version: v1.0.0-pre.4-36-g0d78336
// Last commit: 0d78336 (2013-01-25 09:21:59 -0800)
(function() {
/*global __fail__*/
/**
Ember Debug
# NON-POLY
LibraryElement
# has what attrs?
belongs_to :animated_component, class_name: 'Component'
belongs_to :photo_component, class_name: 'Component'
belongs_to :audio_component, class_name: 'Component'
belongs_to :embedded_html_component
belongs_to :stencil_description
routeChanged: (->
Em.run.next ->
path = window.location.pathname
window._gaq.push(['_trackPageview', path])
).observes('currentPath')
curl -H "Origin: http://tobe-staging.herokuapp.com" http://tobe-staging.storage.googleapis.com/a43259256806cd017d6b2181fa5ad929509787ad-ajc2F9gAYnYvng.gif -s -D - -o /dev/null
diff --git a/packages/list-view/lib/list_view_mixin.js b/packages/list-view/lib/list_view_mixin.js
index 2148cf9..6b8bb74 100644
--- a/packages/list-view/lib/list_view_mixin.js
+++ b/packages/list-view/lib/list_view_mixin.js
@@ -214,6 +214,10 @@ Ember.ListViewMixin = Ember.Mixin.create({
endingIndex = min(maxContentIndex, visibleEndingIndex);
this.trigger('scrollYChanged', y);
+ console.log('start');
+ var el = this.$('.ember-list-scrolling-view')
/*
Copyright (C) 2011 by Yehuda Katz
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@mixonic
mixonic / template.html
Last active December 21, 2015 03:59 — forked from bricker/template.html
<script type="text/x-handlebars" id="articles">
{{#each controller itemController="article"}}
<figure class="img-wrapper" {{bindAttr style="imgWrapperStyle"}}>
</figure>
{{/each}}
</script>
// Ember.computed.slice managing the array
Ember.computed.slice = function(dependentKey, begin, end) {
var size = end - begin,
slicedIndex;
var options = {
addedItem: function(array, item, changeMeta, instanceMeta) {
slicedIndex = changeMeta.index - begin;
if (slicedIndex >= 0 && slicedIndex < size) {
if (slicedIndex >= array.length) {
array.push(item);