react-flexr
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -114,5 +114,15 @@ 'use strict'; | ||
function runCallbacks() { | ||
callbacks.values().forEach(function (callback) { | ||
return callback(); | ||
}); | ||
var values = callbacks.values(); | ||
var more = true; | ||
while (more) { | ||
var _values$next = values.next(); | ||
var done = _values$next.done; | ||
var callback = _values$next.value; | ||
if (done) { | ||
return more = false; | ||
} | ||
callback(); | ||
} | ||
running = false; | ||
@@ -119,0 +129,0 @@ } |
@@ -92,3 +92,11 @@ export const canUseDOM = (() => ( | ||
function runCallbacks() { | ||
callbacks.values().forEach(callback => callback()); | ||
const values = callbacks.values(); | ||
let more = true; | ||
while (more) { | ||
const { done, value: callback } = values.next(); | ||
if (done) { | ||
return (more = false); | ||
} | ||
callback(); | ||
} | ||
running = false; | ||
@@ -95,0 +103,0 @@ } |
{ | ||
"name": "react-flexr", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "React flexbox grid made simple.", | ||
@@ -5,0 +5,0 @@ "main": "dist", |
@@ -10,7 +10,7 @@ # Flexr [![Build Status](https://travis-ci.org/kodyl/react-flexr.svg)](https://travis-ci.org/kodyl/react-flexr) [![npm version](https://badge.fury.io/js/react-flexr.svg)](http://badge.fury.io/js/react-flexr) | ||
```javascript | ||
import React from 'react'; | ||
import React, { Component } from 'react'; | ||
import { Grid, Cell } from 'react-flexr'; | ||
import 'react-flexr/styles.css' | ||
class Example extends React.component { | ||
class Example extends Component { | ||
render() { | ||
@@ -33,6 +33,6 @@ return ( | ||
```javascript | ||
import React from 'react'; | ||
import React, { Component } from 'react'; | ||
import { Grid, Cell } from 'react-flexr'; | ||
class Example extends React.component { | ||
class Example extends Component { | ||
render() { | ||
@@ -133,5 +133,5 @@ return ( | ||
import { findMatch } from 'react-flexr'; | ||
import React from 'react'; | ||
import React, { Component } from 'react'; | ||
class App extends React.Component { | ||
class App extends Component { | ||
render() { | ||
@@ -210,6 +210,6 @@ const isPalm = findMatch('palm'); | ||
```javascript | ||
import React from 'react'; | ||
import React, { Component } from 'react'; | ||
import { optimizedResize, findBreakpoints } from 'react-flexr'; | ||
class App extends React.Component { | ||
class App extends Component { | ||
componentDidMount() { | ||
@@ -267,2 +267,1 @@ optimizedResize.init( () => { | ||
``` | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41875
871
263