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
// @flow | |
import React, {Element, PropTypes} from 'react' | |
import pure from 'recompose/pure' | |
import {createStyleSheet} from 'jss-theme-reactor' | |
import classNames from 'classnames' | |
import Logger from '../../../util/Logger' | |
type Props = { | |
type: ?string, | |
children: ?Element<any> |
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
// @flow | |
import React, {Component, Element, PropTypes} from 'react' | |
import classNames from 'classnames' | |
import pure from 'recompose/pure' | |
import merge from 'lodash/merge' | |
import {createStyleSheet} from 'jss-theme-reactor' | |
import Logger from '../../util/Logger' | |
import {capitalizeFirstLetter} from '../../util/strings' | |
type DefaultProps = { |
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
import React, { Component, PropTypes } from 'react'; | |
import verge from 'verge'; | |
import { Motion, spring } from 'react-motion'; | |
import withStyles from 'isomorphic-style-loader/lib/withStyles'; | |
import styles from './styles.scss'; |
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] ) { |
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 (window) { | |
// This library re-implements setTimeout, setInterval, clearTimeout, clearInterval for iOS6. | |
// iOS6 suffers from a bug that kills timers that are created while a page is scrolling. | |
// This library fixes that problem by recreating timers after scrolling finishes (with interval correction). | |
// This code is released in the public domain. Do with it what you want, without limitations. I do not promise | |
// that it works, or that I will provide support (don't sue me). | |
// Author: rkorving@wizcorp.jp | |
var timeouts = {}; |
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
# example view implements a simple dragging for mouse events. | |
Wall.DevView = Ember.View.extend | |
mouseDown: (ev) -> | |
ev.dispatcher.lock @, 'mouseMove', 'mouseUp' | |
@_mouseDown = @$().offset() | |
@_mouseDown.pageX = ev.pageX | |
@_mouseDown.pageY = ev.pageY | |
@_mouseDown.dispatcher = ev.dispatcher | |
console.log 'mouseDown' |
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 | |
NewerOlder