cloak.animate
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "cloak.animate", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "The Cloak.js module for animating views and controllers (using Velocity)", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -40,2 +40,3 @@ | ||
* [cloak.forms](https://github.com/UmbraEngineering/cloak.forms) - Provides an extension to `cloak.view` for easier handling of forms | ||
* [cloak.nedb](https://github.com/UmbraEngineering/cloak.nedb) - Provides a NeDB (Node Embedded Database) interface for model storage. A faster, more complete local data implementation than `cloak.localstorage` meant for use in local applications (like node-webkit projects) | ||
@@ -42,0 +43,0 @@ |
@@ -6,4 +6,3 @@ | ||
var view = exports.ViewAnimation = { }; | ||
var controller = exports.ControllerAnimation = { }; | ||
var Mixin = exports.Animation = { }; | ||
@@ -47,3 +46,3 @@ // | ||
// | ||
view.animate = function(animation, options) { | ||
Mixin.animate = function(animation, options) { | ||
return exports.animate(this.elem, animation, options); | ||
@@ -55,21 +54,5 @@ }; | ||
// | ||
view.animate.wait = exports.animate.wait; | ||
Mixin.animate.wait = exports.animate.wait; | ||
// | ||
// Controller specific animate function | ||
// | ||
// @param {animation} the properties to animate | ||
// @param {options} additional options | ||
// @return Promise | ||
// | ||
controller.animate = function(animation, options) { | ||
return exports.animate(this.scope, animation, options); | ||
}; | ||
// | ||
// Re-expose | ||
// | ||
controller.animate.wait = exports.animate.wait; | ||
// | ||
// Add the animation shortcut methods (eg. fadeOut) to view and controller | ||
@@ -76,0 +59,0 @@ // |
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
128
7618
70