Comparing version 1.0.12 to 1.0.13
@@ -49,2 +49,3 @@ var clone, dEl, end, getDelta, getEvent, isString, move, ref, start; | ||
} | ||
o.secondMove = o.firstMove; | ||
if (o.firstMove) { | ||
@@ -62,3 +63,3 @@ if ((ref1 = o.onFirstMove) != null) { | ||
end = function(o, e) { | ||
var ref1, ref2; | ||
var ref1, ref2, ref3; | ||
if (typeof o._moveRemover === "function") { | ||
@@ -71,3 +72,8 @@ o._moveRemover(); | ||
} else { | ||
return (ref2 = o.onEnd) != null ? ref2.call(this, getDelta(o.start, e), o) : void 0; | ||
if ((ref2 = o.onEnd) != null) { | ||
ref2.call(this, getDelta(o.start, e), o); | ||
} | ||
if (o.secondMove) { | ||
return (ref3 = o.onClick) != null ? ref3.call(this, o) : void 0; | ||
} | ||
} | ||
@@ -74,0 +80,0 @@ }; |
@@ -65,3 +65,4 @@ var attach, clone, close, dEl, detach, getAnimateObj, getLastItem, isString, noop, overlay, ref, s, stack; | ||
opacity: 0, | ||
done: detach | ||
done: detach, | ||
allowScroll: true | ||
}; | ||
@@ -86,4 +87,4 @@ if (o.open) { | ||
} else { | ||
s.marginRight = getViewportSize().width - dEl.clientWidth + "px"; | ||
s.overflow = "hidden"; | ||
s.marginRight = getViewportSize().width - dEl.clientWidth + "px"; | ||
} | ||
@@ -90,0 +91,0 @@ target.animation = { |
@@ -7,2 +7,3 @@ var noop; | ||
_name: "parseActive", | ||
_prio: 10000, | ||
_v: 1, | ||
@@ -12,3 +13,4 @@ mixins: [require("./computed")], | ||
$parseActive: function(o) { | ||
var activate, deactivate; | ||
var activate, activateWrapper, deactivate, shouldActivate; | ||
shouldActivate = false; | ||
deactivate = noop; | ||
@@ -18,2 +20,5 @@ activate = (function(_this) { | ||
var _deactivate; | ||
if (!shouldActivate) { | ||
return; | ||
} | ||
deactivate(); | ||
@@ -39,16 +44,19 @@ _deactivate = o.activate.call(_this); | ||
})(this); | ||
activateWrapper = (function(_this) { | ||
return function() { | ||
shouldActivate = true; | ||
if (o.delay) { | ||
return _this.$nextTick(activate); | ||
} else { | ||
return activate(); | ||
} | ||
}; | ||
})(this); | ||
if (o.active) { | ||
return this.$computed.orWatch(o.active, function(val, oldVal) { | ||
if (val !== oldVal) { | ||
if (o._timeout != null) { | ||
clearTimeout(o._timeout); | ||
o._timeout = null; | ||
} | ||
if (val) { | ||
if (o.delay) { | ||
return o._timeout = this.$nextTick(activate); | ||
} else { | ||
return activate(); | ||
} | ||
return activateWrapper(); | ||
} else { | ||
shouldActivate = false; | ||
return deactivate(); | ||
@@ -59,7 +67,3 @@ } | ||
} else { | ||
if (o.delay) { | ||
return this.$nextTick(activate); | ||
} else { | ||
return activate(); | ||
} | ||
return activateWrapper(); | ||
} | ||
@@ -66,0 +70,0 @@ } |
@@ -18,5 +18,7 @@ var ceri; | ||
super() | ||
this._crCb.forEach(cb => { | ||
cb.call(this) | ||
}) | ||
if (this._crCb) { | ||
this._crCb.forEach(cb => { | ||
cb.call(this) | ||
}) | ||
} | ||
return this | ||
@@ -30,6 +32,8 @@ } | ||
self = parent.call(self || this); | ||
ref = self._crCb; | ||
for (i = 0, len = ref.length; i < len; i++) { | ||
fn = ref[i]; | ||
fn.call(self); | ||
if (self._crCb) { | ||
ref = self._crCb; | ||
for (i = 0, len = ref.length; i < len; i++) { | ||
fn = ref[i]; | ||
fn.call(self); | ||
} | ||
} | ||
@@ -36,0 +40,0 @@ return self; |
{ | ||
"name": "ceri", | ||
"description": "Custom Elements enRIched", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"homepage": "https://github.com/cerijs/", | ||
@@ -6,0 +6,0 @@ "author": { |
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
94384
2854