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
CancellablePromise.all = function (values) { | |
var CancellablePromise = this; | |
var child; | |
var children = []; | |
return new CancellablePromise(function (resolve, reject) { | |
if (!A.Lang.isArray(values)) { | |
reject(new TypeError('CancellablePromise.all expects an array of values or promises')); | |
return; | |
} |
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
CancellablePromise.all = function (values) { | |
var CancellablePromise = this; | |
var child; | |
var children = []; | |
return new CancellablePromise(function (resolve, reject) { | |
if (!A.Lang.isArray(values)) { | |
reject(new TypeError('CancellablePromise.all expects an array of values or promises')); | |
return; | |
} |
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
'use strict'; | |
var fs = require('fs'), | |
path = require('path'), | |
parseCSS = require('css-parse'), | |
Promise = require('es6-promise').Promise; | |
module.exports = function gridUnits(pureDir, callback) { | |
readUnits(path.join(pureDir, 'grids-units.css')) | |
.then(parseCSS) |
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
Y.io.xhr = function (uri, options) { | |
options = options || {}; | |
return new Y.Promise(function (resolve, reject) { | |
var io = Y.io(url, { | |
// reference options directly to avoid insertion of unwanted options | |
// into Y.io() | |
method: options.method, | |
data: options.data, | |
headers: options.headers, |
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 stream = require("fake-stream-lib"), | |
Emitter = require("events").EventEmitter, | |
util = require("util"); | |
// Today... | |
function Device( opts ) { | |
this.value = 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>ScrollView With Pagination</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | |
<style> | |
/* Avoid resource latency for these, since they hide unenhanced content */ | |
.yui3-js-enabled .yui3-scrollview-loading { | |
visibility:hidden; |