marionette-animated-region
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -5,2 +5,5 @@ # Changelog | ||
## 1.1.1 | ||
- Upgrade dependencies | ||
## 1.1.0 | ||
@@ -7,0 +10,0 @@ - Fix issue with velocity animate modules (especially in commonjs) |
'use strict'; | ||
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -11,4 +13,2 @@ | ||
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; } | ||
(function (factory) { | ||
@@ -29,3 +29,7 @@ if (typeof require === 'function' && (typeof exports === 'undefined' ? 'undefined' : _typeof(exports)) === 'object') { | ||
if (!animations.length) throw new Error('You must define showAnimation or hideAnimation objects. Ex: exRegion: { animation: { showAnimation: [{ //properties and options }, { ... }] } }'); | ||
/* eslint-disable */ | ||
if (!animations.length) { | ||
throw new Error('You must define showAnimation or hideAnimation objects. Ex: exRegion: { animation: { showAnimation: [{ //properties and options }, { ... }] } }'); | ||
} | ||
/* eslint-disable */ | ||
@@ -60,3 +64,3 @@ var _loop = function _loop(i, length) { | ||
var AnimatedRegion = (function (_Marionette$Region) { | ||
var AnimatedRegion = function (_Marionette$Region) { | ||
_inherits(AnimatedRegion, _Marionette$Region); | ||
@@ -116,3 +120,3 @@ | ||
return AnimatedRegion; | ||
})(Marionette.Region); | ||
}(Marionette.Region); | ||
@@ -119,0 +123,0 @@ _.extend(AnimatedRegion, Backbone.Events); |
{ | ||
"name": "marionette-animated-region", | ||
"description": "Backbone.Marionette animated region based on Velocity.js animation library", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"main": "lib/marionette-animated-region.js", | ||
@@ -34,3 +34,4 @@ "author": { | ||
"pretest": "npm run compile", | ||
"test": "mocha-phantomjs test/index.html", | ||
"lint": "eslint src", | ||
"test": "mocha-phantomjs test/index.html && npm run lint", | ||
"prepublish": "npm run compile" | ||
@@ -41,3 +42,3 @@ }, | ||
"backbone.marionette": "^2.4.4", | ||
"jquery": "^2.1.4", | ||
"jquery": "^2.2.1", | ||
"underscore": "^1.8.3", | ||
@@ -47,9 +48,11 @@ "velocity-animate": "^1.2.3" | ||
"devDependencies": { | ||
"babel-cli": "^6.2.0", | ||
"babel-polyfill": "^6.3.13", | ||
"babel-preset-es2015": "^6.1.18", | ||
"chai": "^3.4.1", | ||
"mocha": "^2.3.4", | ||
"mocha-phantomjs": "^4.0.1" | ||
"babel-cli": "^6.5.1", | ||
"babel-eslint": "^5.0.0", | ||
"babel-polyfill": "^6.5.0", | ||
"babel-preset-es2015": "^6.5.0", | ||
"chai": "^3.5.0", | ||
"eslint": "^2.2.0", | ||
"mocha": "^2.4.5", | ||
"mocha-phantomjs": "^4.0.2" | ||
} | ||
} |
## Backbone.Marionette animated region based on Velocity.js | ||
Animared region for Backbone.Marionette views based on Velocity.js animation library | ||
Animared region for Backbone.Marionette views based on Velocity.js animation library. | ||
[![Build Status](https://travis-ci.org/maratfakhreev/marionette-animated-region.svg?branch=master)](https://travis-ci.org/maratfakhreev/marionette-animated-region) | ||
Marionette-animated-region is convinient animated plugin based on [Velocity.js](http://velocityjs.org). It provides you to create beautiful animation effects for your Marionette views. | ||
Backbone.Marionette animated region is convinient animated plugin based on [Velocity.js](http://velocityjs.org). It provides you to create beautiful animation effects for your Marionette views. | ||
@@ -28,3 +28,3 @@ ### How to install: | ||
```javascript | ||
require('marionette-animated-region'); | ||
var AnimatedRegion = require('marionette-animated-region'); | ||
``` | ||
@@ -34,3 +34,3 @@ | ||
The main goodies that Marionette-animated-region uses only region properties and can work as simple Marionette region if you do not define animation. So it's flexible, fast and maximum safety. | ||
The main goodies that Backbone.Marionette animated region uses only region properties and can work as simple Marionette region if you do not define animation. So it's flexible, fast and maximum safety. | ||
@@ -116,3 +116,3 @@ ```javascript | ||
Marionette-animated-region includes show and destroy callbacks. In some situations you may need to perform some action only after the animation will take place. So in your event aggregator or Marionette instance you can provide listeners for `AnimatedRegion`. You may listen two `region:shown` and `region:removed` actions. | ||
Backbone.Marionette animated region includes show and destroy callbacks. In some situations you may need to perform some action only after the animation will take place. So in your event aggregator or Marionette instance you can provide listeners for `AnimatedRegion`. You may listen two `region:shown` and `region:removed` actions. | ||
@@ -119,0 +119,0 @@ ```javascript |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
25030
247
8
Updatedjquery@^2.2.1