Skip to content

Commit

Permalink
Re-build assets
Browse files Browse the repository at this point in the history
  • Loading branch information
calebporzio committed Feb 23, 2021
1 parent ca229fb commit aee28fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions dist/alpine-ie11.js
Original file line number Diff line number Diff line change
Expand Up @@ -6544,7 +6544,7 @@

var items = component.evaluateReturnExpression(el, iteratorNames.items, extraVars); // This adds support for the `i in n` syntax.

if (isNumeric(items) && items > 0) {
if (isNumeric(items) && items >= 0) {
items = Array.from(Array(items).keys(), function (i) {
_newArrowCheck(this, _this4);

Expand Down Expand Up @@ -7352,9 +7352,13 @@
initReturnedCallback = this.evaluateReturnExpression(this.$el, initExpression);
this.pauseReactivity = false;
} // Register all our listeners and set all our attribute bindings.
// If we're cloning a component, the third parameter ensures no duplicate
// event listeners are registered (the mutation observer will take care of them)


this.initializeElements(this.$el); // Use mutation observer to detect new elements being added within this component at run-time.
this.initializeElements(this.$el, function () {
_newArrowCheck(this, _this);
}.bind(this), componentForClone ? false : true); // Use mutation observer to detect new elements being added within this component at run-time.
// Alpine's just so darn flexible amirite?

this.listenForNewElementsToInitialize();
Expand Down Expand Up @@ -7507,14 +7511,15 @@
var extraVars = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {
_newArrowCheck(this, _this10);
}.bind(this);
var shouldRegisterListeners = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
this.walkAndSkipNestedComponents(rootEl, function (el) {
_newArrowCheck(this, _this10);

// Don't touch spawns from for loop
if (el.__x_for_key !== undefined) return false; // Don't touch spawns from if directives

if (el.__x_inserted_me !== undefined) return false;
this.initializeElement(el, extraVars);
this.initializeElement(el, extraVars, shouldRegisterListeners);
}.bind(this), function (el) {
_newArrowCheck(this, _this10);

Expand All @@ -7526,13 +7531,15 @@
}, {
key: "initializeElement",
value: function initializeElement(el, extraVars) {
var shouldRegisterListeners = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;

// To support class attribute merging, we have to know what the element's
// original class attribute looked like for reference.
if (el.hasAttribute('class') && getXAttrs(el, this).length > 0) {
el.__x_original_classes = convertClassStringToArray(el.getAttribute('class'));
}

this.registerListeners(el, extraVars);
shouldRegisterListeners && this.registerListeners(el, extraVars);
this.resolveBoundAttributes(el, true, extraVars);
}
}, {
Expand Down
2 changes: 1 addition & 1 deletion dist/alpine.js
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@

let items = component.evaluateReturnExpression(el, iteratorNames.items, extraVars); // This adds support for the `i in n` syntax.

if (isNumeric(items) && items > 0) {
if (isNumeric(items) && items >= 0) {
items = Array.from(Array(items).keys(), i => i + 1);
}

Expand Down

0 comments on commit aee28fc

Please sign in to comment.