Permalink
Browse files

Update

  • Loading branch information...
1 parent f86c7e4 commit cd582b20c21c2ba32c0ddeb30db2891b3ac2cb27 @henriquea committed Apr 19, 2016
Showing with 7 additions and 11 deletions.
  1. +0 โˆ’1 .gitignore
  2. +0 โˆ’4 CHANGELOG.md
  3. +2 โˆ’0 dist/minigrid.min.js
  4. +4 โˆ’5 package.json
  5. +1 โˆ’1 src/index.js
View
@@ -1,4 +1,3 @@
.DS_Store
node_modules
*.log
-dist
View
@@ -1,9 +1,5 @@
# CHANGELOG
-### v3.0.1
-
-- Remove dist folder
-
### v3.0.0
The major change is the API. We took one step back to its core principle of "keep it simple".
@@ -0,0 +1,2 @@
+/* @license Minigrid v3.0.0 โ€“ minimal cascading grid layout http://alves.im/Minigrid */
+!function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.Minigrid=e()}(this,function(t){"use strict";function e(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}var i=function(t){var i=t.container instanceof Node?t.container:document.querySelector(t.container),n=t.item instanceof NodeList?t.item:i.querySelectorAll(t.item);this.props=e(t,{container:i,nodeList:n})};return i.prototype.mount=function(){if(!this.props.container)return!1;if(!this.props.nodeList||0===this.props.nodeList.length)return!1;var t="number"==typeof this.props.gutter&&isFinite(this.props.gutter)&&Math.floor(this.props.gutter)===this.props.gutter?this.props.gutter:0,e=this.props.done,i=this.props.container,n=this.props.nodeList;i.style.width="";var r=Array.prototype.forEach,o=i.getBoundingClientRect().width,s=n[0].getBoundingClientRect().width+t,p=Math.max(Math.floor((o-t)/s),1),a=0;o=s*p+t+"px",i.style.width=o,i.style.position="relative";for(var c=[],u=[],f=0;p>f;++f)u.push(f*s+t),c.push(t);r.call(n,function(e){var i=c.slice(0).sort(function(t,e){return t-e}).shift();i=c.indexOf(i);var n=parseInt(u[i]),r=parseInt(c[i]);e.style.position="absolute",e.style.overflow="hidden",e.style.webkitBackfaceVisibility=e.style.backfaceVisibility="hidden",e.style.transformStyle="preserve-3d",e.style.transform="translate3D("+n+"px,"+r+"px, 0)",c[i]+=e.getBoundingClientRect().height+t,a+=1});var h=c.slice(0).sort(function(t,e){return t-e}).pop();i.style.height=h+"px","function"==typeof e&&e(n)},i});
View
@@ -1,18 +1,17 @@
{
"name": "minigrid",
- "version": "3.0.1",
+ "version": "3.0.0",
"description": "Minimal 2kb zero dependency cascading grid layout",
"main": "src/index.js",
"files": [
- "src/index.js",
- "src/minigrid.umd.js"
+ "src/index.js"
],
"scripts": {
- "clean": "rm -rf umd/minigrid.umd.js",
+ "clean": "rm -rf dist/minigrid.min.js",
"build": "npm run clean && npm run lint && npm run test && npm run uglify",
"lint": "./node_modules/.bin/eslint --config=.eslintrc src",
"test": "browserify tests/index.js | tape-run",
- "uglify": "uglifyjs --comments -m -c -o src/minigrid.umd.js src/index.js"
+ "uglify": "uglifyjs --comments -m -c -o dist/minigrid.min.js src/index.js"
},
"repository": {
"type": "git",
View
@@ -1,4 +1,4 @@
-/* @license Minigrid v3.0.1 โ€“ minimal cascading grid layout http://alves.im/minigrid */
+/* @license Minigrid v3.0.0 โ€“ minimal cascading grid layout http://alves.im/minigrid */
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define(factory);

0 comments on commit cd582b2

Please sign in to comment.