Skip to content

Commit 9ab5a81

Browse files
committed
Add bundle for next release 2.1.1
1 parent 7290f78 commit 9ab5a81

File tree

1 file changed

+20
-15
lines changed

1 file changed

+20
-15
lines changed

bundle.js

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Patternslib 2.1.0
1+
// Patternslib 2.1.1-dev
22

33
/**
44
* @license almond 0.3.3 Copyright jQuery Foundation and other contributors.
@@ -27255,7 +27255,7 @@ define('pat-collapsible',[
2725527255
return;
2725627256
}
2725727257

27258-
this.$panel = $el.find(".panel-content");
27258+
this.$panel = $el.children(".panel-content");
2725927259
if (this.$panel.length === 0) {
2726027260
if ($content.length) {
2726127261
this.$panel = $content
@@ -32874,7 +32874,7 @@ define('pat-depends',[
3287432874
// vim: sw=4 expandtab
3287532875
;
3287632876
/**
32877-
* EvEmitter v1.1.0
32877+
* EvEmitter v1.0.3
3287832878
* Lil' event emitter
3287932879
* MIT License
3288032880
*/
@@ -32979,12 +32979,6 @@ proto.emitEvent = function( eventName, args ) {
3297932979
return this;
3298032980
};
3298132981

32982-
proto.allOff =
32983-
proto.removeAllListeners = function() {
32984-
delete this._events;
32985-
delete this._onceEvents;
32986-
};
32987-
3298832982
return EvEmitter;
3298932983

3299032984
}));
@@ -33637,7 +33631,7 @@ define('pat-modal',[
3363733631
} else {
3363833632
this.$el.append("<div class='panel-content' />");
3363933633
}
33640-
$(".panel-content", this.$el).before($header);
33634+
this.$el.children(".panel-content").before($header);
3364133635
this.$el.children(this.options.panelHeaderContent).prependTo($header);
3364233636

3364333637
// Restore focus in case the active element was a child of $el and
@@ -33720,12 +33714,23 @@ define('pat-modal',[
3372033714
utils.redraw(this.$el.find(".panel-body"));
3372133715
}
3372233716
},
33723-
3372433717
destroy: function() {
33725-
$(document).off(".pat-modal");
33726-
this.$el.remove();
33727-
$('body').removeClass("modal-active");
33728-
}
33718+
var $el = this.$el;
33719+
if ($el.find('form').hasClass('pat-inject') ) {
33720+
// if pat-inject in modal form, listen to patterns-inject-triggered and destroy first
33721+
// once that has been triggered
33722+
$('body').on( "patterns-inject-triggered", function() {
33723+
$(document).off(".pat-modal");
33724+
$el.remove();
33725+
$('body').removeClass("modal-active");
33726+
});
33727+
} else {
33728+
// if working without injection, destroy right away.
33729+
$(document).off(".pat-modal");
33730+
$el.remove();
33731+
$('body').removeClass("modal-active");
33732+
}
33733+
}
3372933734
});
3373033735
});
3373133736

0 commit comments

Comments
 (0)