astarisx-animate
Advanced tools
Comparing version 0.1.1-beta to 0.1.2-beta
{ | ||
"name": "astarisx-animate", | ||
"version": "0.1.1-beta", | ||
"version": "0.1.2-beta", | ||
"homepage": "https://github.com/entrendipity/astarisx-animate", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -10,3 +10,3 @@ ## 0.1.0-beta | ||
## 0.1.2-beta | ||
- Bug fix: item transition didn't work when initialized with no items |
{ | ||
"name": "astarisx-animate", | ||
"description": "Astarisx for React Animation Mixin", | ||
"version": "0.1.1-beta", | ||
"version": "0.1.2-beta", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "react", |
@@ -98,3 +98,3 @@ var when = require('when/es6-shim/Promise.browserify-es6'); | ||
} | ||
primaryArgs.push.apply(primaryArgs, passedInArgs || defaultTrans); | ||
@@ -116,6 +116,15 @@ if(type === void(0)){ | ||
if(ref in component.refs){ | ||
target = prop === "elements" ? component.refs[ref].getDOMNode() : component.refs[ref].getDOMNode().children; | ||
targetArgs = [target]; | ||
targetArgs = []; | ||
if(prop === "collections"){ | ||
targetArgs = [component.refs[ref].getDOMNode().children]; | ||
if(component.refs[ref].getDOMNode().children.length === 0){ | ||
targetArgs.push.apply(targetArgs, []); | ||
} else { | ||
targetArgs.push.apply(targetArgs, (refs[ref] && (direction in refs[ref]) && refs[ref][direction]) || trans || []); | ||
} | ||
} else { //prop === "elements" | ||
targetArgs = [component.refs[ref].getDOMNode()]; | ||
targetArgs.push.apply(targetArgs, (refs[ref] && (direction in refs[ref]) && refs[ref][direction]) || trans || []); | ||
transQueue.push(targetArgs); | ||
} | ||
transQueue.push(targetArgs); | ||
} | ||
@@ -152,3 +161,3 @@ } | ||
var Mixin = { | ||
cueDisplay: transition("display", "transIn"), | ||
@@ -174,9 +183,3 @@ dropDisplay: transition("display", "transOut"), | ||
component: displays[display].component, | ||
pages: displays[display].pages, | ||
// path: displays[display].path, | ||
// transIn: displays[display].transIn, | ||
// transOut: displays[display].transOut, | ||
// collections: displays[display].collections, | ||
// elements: displays[display].elements, | ||
// listItem: displays[display].listItem | ||
pages: displays[display].pages | ||
} | ||
@@ -189,3 +192,3 @@ var dis = Displays[(displays[display].displayGroup || ctx) + "." + display]; | ||
}); | ||
} | ||
@@ -215,3 +218,3 @@ } | ||
//pass in the new path even it it is the same display. | ||
//pass in the new path even it it is the same display. | ||
//The path will change because the Page would have changed | ||
@@ -327,3 +330,3 @@ if('path' in next.display){ | ||
} | ||
}, | ||
}, | ||
pageName: { | ||
@@ -330,0 +333,0 @@ get: function(){ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
371068
5514