- });
- $('.images-wrap', panel).lazyload('.image-box', {threshold: 640 * 10, scrollTreshold: 640 * 5});
-
- $(window).bind('resize', {'panel': panel}, resizeEditor);
- resizeEditor(null, panel);
- }, function(event, panel) {
- console.log('unloaded gallery panel', panel);
- });
- })()
+ })
+ });
+
+ $('.images-wrap', contentDiv).lazyload('.image-box',
+ {threshold: 640 * 10, scrollTreshold: 640 * 5}
+ );
+ },
+ refresh: function() {
+ return true; // gallery is always fresh
+ },
+ dirty: function() {
+ return true; // and it doesn't get dirty
+ }
+};