Skip to content

Commit

Permalink
Fix: type of popup was read from "type" attribute of target element b…
Browse files Browse the repository at this point in the history
…y mistake, closes dimsemenov#316
  • Loading branch information
dimsemenov committed Dec 27, 2013
1 parent 4098526 commit 4063d85
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions dist/jquery.magnific-popup.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! Magnific Popup - v0.9.9 - 2013-12-04
/*! Magnific Popup - v0.9.9 - 2013-12-27
* http://dimsemenov.com/plugins/magnific-popup/
* Copyright (c) 2013 Dmitry Semenov; */
;(function($) {
Expand Down Expand Up @@ -565,11 +565,12 @@ MagnificPopup.prototype = {
*/
parseEl: function(index) {
var item = mfp.items[index],
type = item.type;
type;

if(item.tagName) {
item = { el: $(item) };
} else {
type = item.type;
item = { data: item, src: item.src };
}

Expand Down
Loading

0 comments on commit 4063d85

Please sign in to comment.