delorean.js
Advanced tools
Comparing version 0.5.0-16 to 0.5.0-17
{ | ||
"name": "delorean.js", | ||
"version": "0.5.0-16", | ||
"version": "0.5.0-17", | ||
"homepage": "http://deloreanjs.com", | ||
@@ -5,0 +5,0 @@ "authors": [ |
{ | ||
"name": "delorean.js", | ||
"version": "0.5.0-16", | ||
"version": "0.5.0-17", | ||
"description": "Flux Library", | ||
@@ -5,0 +5,0 @@ "main": "src/delorean.js", |
@@ -7,3 +7,3 @@ ![DeLorean Logo](https://raw.githubusercontent.com/f/delorean/master/docs/asset/delorean-logo.png) | ||
[![NPM version](https://badge.fury.io/js/delorean.js.svg)](http://badge.fury.io/js/delorean.js) | ||
![Coverage](http://progressed.io/bar/67?title=coverage) | ||
![Coverage](http://progressed.io/bar/85?title=coverage) | ||
@@ -10,0 +10,0 @@ DeLorean is a tiny Flux pattern implementation. |
@@ -8,2 +8,4 @@ module.exports = function (config) { | ||
files: [ | ||
'test/spec/common.js', | ||
'test/vendor/react-0.11.1.js', | ||
'src/delorean.js', | ||
@@ -10,0 +12,0 @@ 'dist/.tmp/delorean-requires.js', |
@@ -1,24 +0,1 @@ | ||
if (!Function.prototype.bind) { | ||
Function.prototype.bind = function (oThis) { | ||
if (typeof this !== 'function') { | ||
// closest thing possible to the ECMAScript 5 | ||
// internal IsCallable function | ||
throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable'); | ||
} | ||
var aArgs = Array.prototype.slice.call(arguments, 1), | ||
fToBind = this, | ||
FNOP = function () {}, | ||
fBound = function () { | ||
return fToBind.apply(this instanceof FNOP && oThis ? this : oThis, | ||
aArgs.concat(Array.prototype.slice.call(arguments))); | ||
}; | ||
FNOP.prototype = this.prototype; | ||
fBound.prototype = new FNOP(); | ||
return fBound; | ||
}; | ||
} | ||
describe('Flux', function () { | ||
@@ -25,0 +2,0 @@ |
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
1584851
39
37143
1
186