<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
$d=array( | |
array("a",-20319), | |
array("ai",-20317), | |
array("an",-20304), | |
array("ang",-20295), | |
array("ao",-20292), | |
array("ba",-20283), | |
array("bai",-20265), | |
array("ban",-20257), | |
array("bang",-20242), |
var images = ["path/to/image", "path/to/image", ... , "path/to/image"], | |
preloaded = images.length; | |
_.each(images, function(img) { | |
var image = $('<img />').attr('src', img); | |
image.on('load', function(){ | |
preloaded--; | |
if (preloaded === 0){ | |
console.log("All preloaded!"); | |
} |
Inspired by this issue, with these instructions you should be able to get Babel transpiling your JS in Sails JS for the client side.
npm install --save grunt-babel
babel.js
file under tasks/config
and add something like the following:module.exports = function(grunt) {
grunt.config.set('babel', {
dev: {