diff --git a/dist/documentjs/jmvcdoc/production.js b/dist/documentjs/jmvcdoc/production.js index 22c06008f..323ea69ff 100644 --- a/dist/documentjs/jmvcdoc/production.js +++ b/dist/documentjs/jmvcdoc/production.js @@ -1,4 +1,4 @@ -steal.plugins("jquery/controller","jquery/controller/history","jquery/view/ejs","jquery/model","jquery/lang/json","jquery/dom/cookie","phui/filler","phui/positionable","phui/menuable").resources("helpers","highlight","languages/javascript","languages/www").models("favorites","search").controllers("documentation","iframe","demo").views("//jmvcdoc/views/attribute.ejs","//jmvcdoc/views/class.ejs","//jmvcdoc/views/constructor.ejs","//jmvcdoc/views/favorite.ejs","//jmvcdoc/views/function.ejs","//jmvcdoc/views/page.ejs", +steal.plugins("jquery/controller","jquery/controller/history","jquery/view/ejs","jquery/model","jquery/lang/json","jquery/dom/cookie","mxui/filler","mxui/positionable","mxui/menuable").resources("helpers","highlight","languages/javascript","languages/www").models("favorites","search").controllers("documentation","iframe","demo").views("//jmvcdoc/views/attribute.ejs","//jmvcdoc/views/class.ejs","//jmvcdoc/views/constructor.ejs","//jmvcdoc/views/favorite.ejs","//jmvcdoc/views/function.ejs","//jmvcdoc/views/page.ejs", "//jmvcdoc/views/results.ejs","//jmvcdoc/views/top.ejs","//jmvcdoc/views/iframe/init.ejs","//jmvcdoc/views/iframe/menu.ejs","//jmvcdoc/views/demo/init.ejs").then(function(){var a=window.location.href.match(/docs\/(.*)\.html/);if((a=a&&a[1])&&location.hash=="")window.location.hash="&who="+a}); if(typeof COMMENTS_LOCATION!="undefined"){steal.css("http://mediacdn.disqus.com/1066/build/themes/narcissus.css?1281560657&","http://mediacdn.disqus.com/1066/styles/embed/thread.css?");if(window.location.protocol=="file:"||window.location.hostname=="localhost")window.disqus_developer=1}; ; @@ -247,7 +247,7 @@ steal.plugins("jquery/lang/json").then(function(){jQuery.cookie=function(d,b,a){ ; steal.end(); steal.plugins("jquery/dom/dimensions","jquery/event/resize").then(function(c){var i=/script|td/,j=function(a){return a===document||a===document.documentElement||a===window||a===document.body},k=function(a){if(a[0]==window)return false;a=a.curStyles("borderBottomWidth","paddingBottom");return!parseInt(a.borderBottomWidth)&&!parseInt(a.paddingBottom)},l=function(a,b){return a.outerHeight()+b(a)};pageOffset=function(a){return a.offset().top};offsetTop=function(a){return a[0].offsetTop};inFloat=function(a, -b){for(;a&&a!=b;){var d=c(a).css("float");if(d=="left"||d=="right")return d;a=a.parentNode}};filler=c.fn.phui_filler=function(a){a||(a={});a.parent||(a.parent=c(this).parent());a.parent=c(a.parent);var b=j(a.parent[0]);if(b)a.parent=c(window);b={filler:this,inFloat:inFloat(this[0],b?document.body:a.parent[0])};c(a.parent).bind("resize",b,filler.parentResize);this.bind("destroyed",b,function(d){d.filler.removeClass("phui_filler");c(a.parent).unbind("resize",filler.parentResize)});this.addClass("phui_filler"); +b){for(;a&&a!=b;){var d=c(a).css("float");if(d=="left"||d=="right")return d;a=a.parentNode}};filler=c.fn.mxui_filler=function(a){a||(a={});a.parent||(a.parent=c(this).parent());a.parent=c(a.parent);var b=j(a.parent[0]);if(b)a.parent=c(window);b={filler:this,inFloat:inFloat(this[0],b?document.body:a.parent[0])};c(a.parent).bind("resize",b,filler.parentResize);this.bind("destroyed",b,function(d){d.filler.removeClass("mxui_filler");c(a.parent).unbind("resize",filler.parentResize)});this.addClass("mxui_filler"); b=function(){setTimeout(function(){a.parent.triggerHandler("resize")},13)};c.isReady?b():c(b);return this};c.extend(filler,{parentResize:function(a){var b=c(this),d=this==window?c(document.body):b,g=k(b),e=d.children().filter(function(){if(i.test(this.nodeName.toLowerCase()))return false;var f=c.curStyles(this,["position","display"]);return f.position!=="absolute"&&f.position!=="fixed"&&f.display!=="none"&&!jQuery.expr.filters.hidden(this)}).eq(-1),h=a.data.filler.offsetParent()[0]===d[0];offset= h||e.offsetParent()[0]==d.offsetParent()[0]?offsetTop:pageOffset;firstOffset=h?0:offset(d);parentHeight=b.height();if(g)e=c('
').appendTo(d);b=l(e,offset)-0-firstOffset;b=parentHeight-b;d=a.data.filler.height();a.data.filler.height(d+b);g&&e.remove();a.data.filler.triggerHandler("resize")}})}); ; @@ -359,7 +359,7 @@ $.fn.highlight=function(){this.each(function(){hljs.highlightBlock(this)});retur ; steal.end(); jQuery.Controller.extend("IframeController",{},{init:function(){var a=this,c=320,d=[];hljs.start();this.element.html(this.view("//jmvcdoc/views/iframe/init.ejs"));var e=steal.root.join(this.element.attr("data-iframe-src"));c=!this.element.attr("data-iframe-height")?c:this.element.attr("data-iframe-height");var b=this.find("iframe");b.attr("src",e);b.attr("height",c);b.bind("load",function(){$("script",b[0].contentWindow.document).each(function(g,f){f.text.match(/steal.end()/)||d.push(f)});if(!a.iframesCache)a.iframesCache= -{};a.iframesCache[a.toId(b.attr("src"))]=d})},toId:function(a){return a.replace(/[\/\.]/g,"_")},".iframe_menu_button click":function(a){var c=this.find("iframe"),d=this.iframesCache[this.toId(c.attr("src"))];if(d&&d.length>0){var e=$(".iframe_menu_wrapper");if(e.length)e.slideToggle("slow");else{a.after("//jmvcdoc/views/iframe/menu.ejs",{scripts:d,iframeWindow:c[0].contentWindow},DocumentationController.Helpers);e=$(".iframe_menu_wrapper");e.phui_positionable({my:"right top",at:"right bottom"}).trigger("move", +{};a.iframesCache[a.toId(b.attr("src"))]=d})},toId:function(a){return a.replace(/[\/\.]/g,"_")},".iframe_menu_button click":function(a){var c=this.find("iframe"),d=this.iframesCache[this.toId(c.attr("src"))];if(d&&d.length>0){var e=$(".iframe_menu_wrapper");if(e.length)e.slideToggle("slow");else{a.after("//jmvcdoc/views/iframe/menu.ejs",{scripts:d,iframeWindow:c[0].contentWindow},DocumentationController.Helpers);e=$(".iframe_menu_wrapper");e.mxui_positionable({my:"right top",at:"right bottom"}).trigger("move", a);$iframeMenuItem=$(".iframe_menu_item a");$iframeMenuItem.bind("click",function(){var b=steal.root.join($(this).attr("data-src"));window.open(b,b)})}}},windowresize:function(){$(".iframe_menu_wrapper").trigger("move",$(".iframe_menu_button"))}}); ; steal.end(); diff --git a/jmvcdoc/production.js b/jmvcdoc/production.js index 4a110443e..4f134ca6e 100644 --- a/jmvcdoc/production.js +++ b/jmvcdoc/production.js @@ -1,4 +1,4 @@ -steal.plugins("jquery/controller","jquery/controller/history","jquery/view/ejs","jquery/model","jquery/lang/json","jquery/dom/cookie","phui/filler","phui/positionable","phui/menuable").resources("helpers","highlight","languages/javascript","languages/www").models("favorites","search").controllers("documentation","iframe","demo").views("//jmvcdoc/views/attribute.ejs","//jmvcdoc/views/class.ejs","//jmvcdoc/views/constructor.ejs","//jmvcdoc/views/favorite.ejs","//jmvcdoc/views/function.ejs","//jmvcdoc/views/page.ejs", +steal.plugins("jquery/controller","jquery/controller/history","jquery/view/ejs","jquery/model","jquery/lang/json","jquery/dom/cookie","mxui/filler","mxui/positionable","mxui/menuable").resources("helpers","highlight","languages/javascript","languages/www").models("favorites","search").controllers("documentation","iframe","demo").views("//jmvcdoc/views/attribute.ejs","//jmvcdoc/views/class.ejs","//jmvcdoc/views/constructor.ejs","//jmvcdoc/views/favorite.ejs","//jmvcdoc/views/function.ejs","//jmvcdoc/views/page.ejs", "//jmvcdoc/views/results.ejs","//jmvcdoc/views/top.ejs","//jmvcdoc/views/iframe/init.ejs","//jmvcdoc/views/iframe/menu.ejs","//jmvcdoc/views/demo/init.ejs").then(function(){var a=window.location.href.match(/docs\/(.*)\.html/);if((a=a&&a[1])&&location.hash=="")window.location.hash="&who="+a}); if(typeof COMMENTS_LOCATION!="undefined"){steal.css("http://mediacdn.disqus.com/1066/build/themes/narcissus.css?1281560657&","http://mediacdn.disqus.com/1066/styles/embed/thread.css?");if(window.location.protocol=="file:"||window.location.hostname=="localhost")window.disqus_developer=1}; ; @@ -254,7 +254,7 @@ steal.plugins("jquery/lang/json").then(function(){jQuery.cookie=function(d,b,a){ ; steal.end(); steal.plugins("jquery/dom/dimensions","jquery/event/resize").then(function(c){var i=/script|td/,j=function(a){return a===document||a===document.documentElement||a===window||a===document.body},k=function(a){if(a[0]==window)return false;a=a.curStyles("borderBottomWidth","paddingBottom");return!parseInt(a.borderBottomWidth)&&!parseInt(a.paddingBottom)},l=function(a,b){return a.outerHeight()+b(a)};pageOffset=function(a){return a.offset().top};offsetTop=function(a){return a[0].offsetTop};inFloat=function(a, -b){for(;a&&a!=b;){var d=c(a).css("float");if(d=="left"||d=="right")return d;a=a.parentNode}};filler=c.fn.phui_filler=function(a){a||(a={});a.parent||(a.parent=c(this).parent());a.parent=c(a.parent);var b=j(a.parent[0]);if(b)a.parent=c(window);b={filler:this,inFloat:inFloat(this[0],b?document.body:a.parent[0])};c(a.parent).bind("resize",b,filler.parentResize);this.bind("destroyed",b,function(d){d.filler.removeClass("phui_filler");c(a.parent).unbind("resize",filler.parentResize)});this.addClass("phui_filler"); +b){for(;a&&a!=b;){var d=c(a).css("float");if(d=="left"||d=="right")return d;a=a.parentNode}};filler=c.fn.mxui_filler=function(a){a||(a={});a.parent||(a.parent=c(this).parent());a.parent=c(a.parent);var b=j(a.parent[0]);if(b)a.parent=c(window);b={filler:this,inFloat:inFloat(this[0],b?document.body:a.parent[0])};c(a.parent).bind("resize",b,filler.parentResize);this.bind("destroyed",b,function(d){d.filler.removeClass("mxui_filler");c(a.parent).unbind("resize",filler.parentResize)});this.addClass("mxui_filler"); b=function(){setTimeout(function(){a.parent.triggerHandler("resize")},13)};c.isReady?b():c(b);return this};c.extend(filler,{parentResize:function(a){var b=c(this),d=this==window?c(document.body):b,g=k(b),e=d.children().filter(function(){if(i.test(this.nodeName.toLowerCase()))return false;var f=c.curStyles(this,["position","display"]);return f.position!=="absolute"&&f.position!=="fixed"&&f.display!=="none"&&!jQuery.expr.filters.hidden(this)}).eq(-1),h=a.data.filler.offsetParent()[0]===d[0];offset= h||e.offsetParent()[0]==d.offsetParent()[0]?offsetTop:pageOffset;firstOffset=h?0:offset(d);parentHeight=b.height();if(g)e=c('
').appendTo(d);b=l(e,offset)-0-firstOffset;b=parentHeight-b;d=a.data.filler.height();a.data.filler.height(d+b);g&&e.remove();a.data.filler.triggerHandler("resize")}})}); ; @@ -366,7 +366,7 @@ a),error:this.callback("whoNotFound",a),jsonpCallback:"C",dataType:"jsonp"})}}}) ; steal.end(); jQuery.Controller.extend("IframeController",{},{init:function(){var a=this,c=320,d=[];hljs.start();this.element.html(this.view("//jmvcdoc/views/iframe/init.ejs"));var e=steal.root.join(this.element.attr("data-iframe-src"));c=!this.element.attr("data-iframe-height")?c:this.element.attr("data-iframe-height");var b=this.find("iframe");b.attr("src",e);b.attr("height",c);b.bind("load",function(){$("script",b[0].contentWindow.document).each(function(g,f){f.text.match(/steal.end()/)||d.push(f)});if(!a.iframesCache)a.iframesCache= -{};a.iframesCache[a.toId(b.attr("src"))]=d})},toId:function(a){return a.replace(/[\/\.]/g,"_")},".iframe_menu_button click":function(a){var c=this.find("iframe"),d=this.iframesCache[this.toId(c.attr("src"))];if(d&&d.length>0){var e=$(".iframe_menu_wrapper");if(e.length)e.slideToggle("slow");else{a.after("//jmvcdoc/views/iframe/menu.ejs",{scripts:d,iframeWindow:c[0].contentWindow},DocumentationController.Helpers);e=$(".iframe_menu_wrapper");e.phui_positionable({my:"right top",at:"right bottom"}).trigger("move", +{};a.iframesCache[a.toId(b.attr("src"))]=d})},toId:function(a){return a.replace(/[\/\.]/g,"_")},".iframe_menu_button click":function(a){var c=this.find("iframe"),d=this.iframesCache[this.toId(c.attr("src"))];if(d&&d.length>0){var e=$(".iframe_menu_wrapper");if(e.length)e.slideToggle("slow");else{a.after("//jmvcdoc/views/iframe/menu.ejs",{scripts:d,iframeWindow:c[0].contentWindow},DocumentationController.Helpers);e=$(".iframe_menu_wrapper");e.mxui_positionable({my:"right top",at:"right bottom"}).trigger("move", a);$iframeMenuItem=$(".iframe_menu_item a");$iframeMenuItem.bind("click",function(){var b=steal.root.join($(this).attr("data-src"));window.open(b,b)})}}},windowresize:function(){$(".iframe_menu_wrapper").trigger("move",$(".iframe_menu_button"))}}); ; steal.end();