Skip to content

Commit 7636022

Browse files
committed
0.9.6 version bump, see changelog for more info
1 parent c48ede2 commit 7636022

7 files changed

Lines changed: 31 additions & 13 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ Optionally:
4141

4242
## Changelog
4343

44+
### 0.9.6 (Sep 29, 2013)
45+
46+
- Fixed bug: options object that you pass to popup gets modified after the initialization (#217, #203).
47+
- Fixed bug: zoom module creates global variable (#226).
48+
- Fixed bug: gallery from AJAX popups stacks content if it's switched before loading has finished.
49+
- Indented and combined SCSS classes (thanks to @nschonni).
50+
- `$.magnificPopup.close()` now doesn't throw an exception if there's no instance (#221, thanks to @mjlescano).
51+
4452
### 0.9.5 (Aug 21, 2013)
4553

4654
- Fixed bug: built-in tab focus in popup works incorrectly (caused by 0.9.3 update).

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "magnific-popup",
3-
"version": "0.9.5",
3+
"version": "0.9.6",
44
"main": [
55
"dist/jquery.magnific-popup.js",
66
"dist/magnific-popup.css"

dist/jquery.magnific-popup.js

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Magnific Popup - v0.9.5 - 2013-08-21
1+
/*! Magnific Popup - v0.9.6 - 2013-09-29
22
* http://dimsemenov.com/plugins/magnific-popup/
33
* Copyright (c) 2013 Dmitry Semenov; */
44
;(function($) {
@@ -414,6 +414,8 @@ MagnificPopup.prototype = {
414414
mfp.isOpen = true;
415415
mfp.updateSize(windowHeight);
416416
_mfpTrigger(OPEN_EVENT);
417+
418+
return data;
417419
},
418420

419421
/**
@@ -827,16 +829,20 @@ $.magnificPopup = {
827829
open: function(options, index) {
828830
_checkInstance();
829831

830-
if(!options)
832+
if(!options) {
831833
options = {};
834+
} else {
835+
options = $.extend(true, {}, options);
836+
}
837+
832838

833839
options.isObj = true;
834840
options.index = index || 0;
835841
return this.instance.open(options);
836842
},
837843

838844
close: function() {
839-
return $.magnificPopup.instance.close();
845+
return $.magnificPopup.instance && $.magnificPopup.instance.close();
840846
},
841847

842848
registerModule: function(name, module) {
@@ -926,7 +932,9 @@ $.fn.magnificPopup = function(options) {
926932
}
927933

928934
} else {
929-
935+
// clone options obj
936+
options = $.extend(true, {}, options);
937+
930938
/*
931939
* As Zepto doesn't support .data() method for objects
932940
* and it works only in normal browsers
@@ -1058,7 +1066,7 @@ $.magnificPopup.registerModule(AJAX_NS, {
10581066
mfp.types.push(AJAX_NS);
10591067
_ajaxCur = mfp.st.ajax.cursor;
10601068

1061-
_mfpOn(CLOSE_EVENT+'.'+AJAX_NS, function() {
1069+
_mfpOn(CLOSE_EVENT+'.'+AJAX_NS + ' BeforeChange.' + AJAX_NS, function() {
10621070
_removeAjaxCursor();
10631071
if(mfp.req) {
10641072
mfp.req.abort();
@@ -1384,7 +1392,8 @@ $.magnificPopup.registerModule('zoom', {
13841392

13851393
initZoom: function() {
13861394
var zoomSt = mfp.st.zoom,
1387-
ns = '.zoom';
1395+
ns = '.zoom',
1396+
image;
13881397

13891398
if(!zoomSt.enabled || !mfp.supportsTransition) {
13901399
return;
@@ -1488,6 +1497,7 @@ $.magnificPopup.registerModule('zoom', {
14881497
if(animatedImg) {
14891498
animatedImg.remove();
14901499
}
1500+
image = null;
14911501
}
14921502
});
14931503
},

dist/jquery.magnific-popup.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/magnific-popup.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ button::-moz-focus-inner {
202202
left: 0; }
203203
.mfp-arrow-left:after,
204204
.mfp-arrow-left .mfp-a {
205-
border-right: 17px solid #FFF;
205+
border-right: 17px solid white;
206206
margin-left: 31px; }
207207
.mfp-arrow-left:before,
208208
.mfp-arrow-left .mfp-b {
@@ -213,7 +213,7 @@ button::-moz-focus-inner {
213213
right: 0; }
214214
.mfp-arrow-right:after,
215215
.mfp-arrow-right .mfp-a {
216-
border-left: 17px solid #FFF;
216+
border-left: 17px solid white;
217217
margin-left: 39px; }
218218
.mfp-arrow-right:before,
219219
.mfp-arrow-right .mfp-b {

magnific-popup.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magnific-popup",
33
"title": "Magnific Popup",
44
"description": "Fast, light, mobile-friendly and responsive lightbox and modal dialog plugin. Open inline HTML, ajax loaded content, image, form, iframe (YouTube video, Vimeo, Google Maps), photo gallery. In/out animation effects are added with CSS3 transitions.",
5-
"version": "0.9.5",
5+
"version": "0.9.6",
66
"homepage": "http://dimsemenov.com/plugins/magnific-popup/",
77
"demo": "http://dimsemenov.com/plugins/magnific-popup/",
88
"docs": "http://dimsemenov.com/plugins/magnific-popup/documentation.html",

website/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ exclude: [".json", ".rvmrc", ".rbenv-version", "README.md", "Rakefile", "changel
66
auto: true
77
pygments: true
88

9-
mfpversion: 0.9.5
9+
mfpversion: 0.9.6

0 commit comments

Comments
 (0)