zeroclickinfo-goodies/share/goodie/js_minify/js_minify.js

28 lines
651 B
JavaScript
Raw Normal View History

2016-07-04 15:51:31 -07:00
DDH.js_minify = DDH.js_minify || {};
"use strict";
2016-07-04 15:51:31 -07:00
DDH.js_minify.build = function(ops) {
2016-07-04 15:51:31 -07:00
var shown = false;
2016-07-04 16:29:18 -07:00
return {
onShow: function() {
console.log("onShow called");
// make sure this function is run only once, the first time
// the IA is shown otherwise things will get initialized more than once
if (shown)
return;
// set the flag to true so it doesn't get run again
shown = true;
var $dom = $('#zci-js_minify'),
$main = $dom.find('.zci__main');
$main.toggleClass('c-base');
}
};
};