Permalink
Browse files

Fixed errors with events.html example

  • Loading branch information...
1 parent 29c3362 commit 5570dcc5acc03eea8dcfaa26ab218504e08b7da6 codecomputerlove committed Jul 5, 2011
Showing with 10 additions and 1 deletion.
  1. +1 −1 src/examples/debug.html
  2. +9 −0 src/photoswipe.js
View
@@ -51,7 +51,7 @@
// Set up PhotoSwipe with all anchor tags in the Gallery container
document.addEventListener('DOMContentLoaded', function(){
- var addEventListeners = false;
+ var addEventListeners = true;
if (addEventListeners){
// Add event listeners
View
@@ -286,6 +286,15 @@
},
+ /*
+ * Function: addEventListener
+ */
+ addEventListener: function(type, handler){
+
+ Util.Events.add(this, type, handler);
+
+ },
+
/*
* Function: addEventHandlers

0 comments on commit 5570dcc

Please sign in to comment.