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"; | |
// | |
// This mixin triggers flight events on xhr requests | |
// by wrapping appropriate jquery xhr callbacks. | |
// | |
// eg. | |
// this.ajax({ | |
// xhr: { | |
// url: '/do/something', |
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 madge = require('madge'), | |
_ = require('underscore'); | |
function loadTargets (graph, depends, targets) { | |
var parents = [], | |
modules = []; | |
depends.forEach(function(dep) { | |
parents = _.uniq(parents.concat(graph.depends(dep))); | |
}); |
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 gulp = require("gulp"), | |
rjs = require("requirejs"), | |
rjsHelper = require('./assets/grunt/requirejs'), | |
glob = require('glob'); | |
var paths = { | |
scripts: 'assets/js' | |
}; | |
var getRequireJSTargets = function() { |
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
import Viewport from './viewport'; | |
import $ from 'jquery'; | |
export default function createResponsiveBgImages() { | |
const viewport = new Viewport(); | |
$('[data-image]').each((idx, el) => { | |
let images = {}; | |
let data = $(el).data(); |