Comparing version 0.10.1 to 0.10.2
@@ -253,17 +253,21 @@ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Alt=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ | ||
ActionsClass.call({ | ||
generateActions: function () { | ||
var actionNames = _slice.call(arguments); | ||
function ActionsGenerator() { | ||
ActionsClass.call(this); | ||
} | ||
ActionsGenerator.prototype = ActionsClass.prototype; | ||
ActionsGenerator.prototype.generateActions = function () { | ||
var actionNames = _slice.call(arguments); | ||
actionNames.forEach(function (actionName) { | ||
// This is a function so we can later bind this to ActionCreator | ||
actions[actionName] = function (x) { | ||
var a = _slice.call(arguments, 1); | ||
actionNames.forEach(function (actionName) { | ||
// This is a function so we can later bind this to ActionCreator | ||
actions[actionName] = function (x) { | ||
var a = _slice.call(arguments, 1); | ||
this.dispatch(a.length ? [x].concat(a) : x); | ||
}; | ||
}); | ||
} | ||
}); | ||
this.dispatch(a.length ? [x].concat(a) : x); | ||
}; | ||
}); | ||
}; | ||
new ActionsGenerator(); | ||
return Object.keys(actions).reduce(function (obj, action) { | ||
@@ -270,0 +274,0 @@ var constant = formatAsConstant(action); |
{ | ||
"name": "alt", | ||
"version": "0.10.1", | ||
"version": "0.10.2", | ||
"description": "A flux implementation", | ||
@@ -15,3 +15,3 @@ "main": "dist/alt.js", | ||
"istanbul": "^0.3.5", | ||
"sixpack": "^2.0.0" | ||
"sixpack": "2.0.0" | ||
}, | ||
@@ -23,6 +23,6 @@ "repository": { | ||
"scripts": { | ||
"build": "./node_modules/sixpack/bin/sixpack ./src/alt.js Alt > dist/alt.js", | ||
"build": "sixpack ./src/alt.js Alt > dist/alt.js", | ||
"prepublish": "npm run build", | ||
"coverage": "node ./node_modules/6to5/bin/6to5 src/alt.js > src/coverage-alt.js; node ./node_modules/6to5/bin/6to5 test.js > coverage-test.js; ./node_modules/istanbul/lib/cli.js cover coverage-test.js", | ||
"test": "node ./node_modules/6to5/bin/6to5 src/alt.js > src/coverage-alt.js; ./node_modules/6to5/bin/6to5-node test.js;" | ||
"coverage": "6to5 src/alt.js > src/coverage-alt.js; 6to5 test.js > coverage-test.js; istanbul cover coverage-test.js", | ||
"test": "6to5 src/alt.js > src/coverage-alt.js; 6to5-node test.js;" | ||
}, | ||
@@ -29,0 +29,0 @@ "keywords": [ |
70015
9
1267