- lib (app unspecific, installed from bower, npm or component) - lib1
- src (app specific)
- screens (take components and build screens)
- screen1
- models
- Model1.js
- views
- models
- screen1
- View1.js
/** | |
* Inherit prototype properties | |
* @param {Function} ctor | |
* @param {Function} superCtor | |
*/ | |
_.mixin({ | |
inherits: (function(){ | |
function noop(){} | |
function ecma3(ctor, superCtor) { |
require('./schema'); | |
var m = require('mongoose'); | |
var Model = m.model('mymodel'); | |
var model = new Model({ | |
name: 'test', | |
elements: [{ |
(function(global){ | |
var $ = global.jQuery || global, | |
D = Date, | |
now = D.now || function() { | |
return (new D).getTime(); | |
}; | |
// if once is true, fn will be executed only once if called more then one times during the time in delay. | |
// if once is not defined or false, fn will be executed periodically, period is delay. |
'use strict' | |
import React from 'react' | |
import useSheet from 'react-jss' | |
import sectionStyle from './sectionStyle' | |
import Item from './Item' | |
/** | |
* One list section which has a title and list items. | |
*/ |
define(function(require, exports, module) { | |
var Surface = require('famous/core/Surface') | |
// https://github.com/Famous/core/issues/37 | |
Surface.prototype.emit = function(type, event) { | |
if (event && !event.origin) event.origin = this; | |
return this.eventHandler.emit(type, event); | |
} | |
}) |
define(function(require, exports, module) { | |
'use strict' | |
var CachedMap = require('famous/transitions/CachedMap') | |
var Transform = require('famous/core/Transform') | |
var _ = require('underscore') | |
function BaseTransition(options) { | |
var o = this.options = _.extend({}, this.constructor.DEFAULT_OPTIONS, options) | |
var spec = this.spec = {} |
exports.ready = new Promise(function(fulfill, reject) { | |
var isResized, isDomReady | |
var isDeviceReady = !window.cordova | |
context.on('resize', function() { | |
isResized = true | |
resolve() | |
}) | |
domready(function() { |
SomeView.prototype.show = function() { | |
var prevAnimation = { | |
transition: {}, | |
transform: {} | |
} | |
var thisAnimation = { | |
transition: {}, | |
transform: {} | |
} |
/* globals define */ | |
define(function(require, exports, module) { | |
'use strict'; | |
// import dependencies | |
var Engine = require('famous/core/Engine'); | |
var Modifier = require('famous/core/Modifier'); | |
var Transform = require('famous/core/Transform'); | |
var Scrollview = require("famous/views/Scrollview"); | |
var View = require('famous/core/View'); | |
var Surface = require('famous/core/Surface'); |