Skip to content

Commit

Permalink
fixing lodash.template version
Browse files Browse the repository at this point in the history
  • Loading branch information
jyoung committed Aug 27, 2019
1 parent b5c9da1 commit b492aa7
Show file tree
Hide file tree
Showing 81 changed files with 3,458 additions and 2,311 deletions.
4 changes: 2 additions & 2 deletions docs/annotated/modules/View.html
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,14 @@ <h1>View.js</h1>
<span class="hljs-comment">/**
* Alias to this.viewState.get()
*/</span>
get: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{
<span class="hljs-keyword">get</span>: function() {
<span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>.viewState.get.apply(<span class="hljs-keyword">this</span>.viewState, <span class="hljs-built_in">arguments</span>);
},

<span class="hljs-comment">/**
* Alias to this.viewState.set()
*/</span>
set: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{
<span class="hljs-keyword">set</span>: function() {
<span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>.viewState.set.apply(<span class="hljs-keyword">this</span>.viewState, <span class="hljs-built_in">arguments</span>);
},

Expand Down
2 changes: 1 addition & 1 deletion docs/annotated/modules/behaviors/DataBehavior.html
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,7 @@ <h1>DataBehavior.js</h1>
* @param {string} [propertyName] the property to get from the model(s).
* @returns {(Object|Object[])} containing the full contents of either the collection or model.
*/</span>
get: <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params">propertyName</span>) </span>{
<span class="hljs-keyword">get</span>: function(propertyName) {
<span class="hljs-keyword">var</span> privateCollection = <span class="hljs-keyword">this</span>.privateCollection;
<span class="hljs-keyword">if</span> (!<span class="hljs-keyword">this</span>.parentBehavior.returnSingleResult) {
<span class="hljs-keyword">if</span> (_.isString(propertyName)) {
Expand Down
27 changes: 20 additions & 7 deletions docs/api/Behavior.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/Behavior.js.html

Large diffs are not rendered by default.

30 changes: 23 additions & 7 deletions docs/api/Cell.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/Cell.js.html

Large diffs are not rendered by default.

75 changes: 68 additions & 7 deletions docs/api/Collection.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/Collection.js.html

Large diffs are not rendered by default.

18 changes: 11 additions & 7 deletions docs/api/DataBehavior-Data.html

Large diffs are not rendered by default.

60 changes: 53 additions & 7 deletions docs/api/DataBehavior.html

Large diffs are not rendered by default.

18 changes: 11 additions & 7 deletions docs/api/Events.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/Events.js.html

Large diffs are not rendered by default.

126 changes: 119 additions & 7 deletions docs/api/FormModel.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/FormModel.js.html

Large diffs are not rendered by default.

153 changes: 146 additions & 7 deletions docs/api/FormView.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/FormView.js.html

Large diffs are not rendered by default.

33 changes: 26 additions & 7 deletions docs/api/HandlebarsHelper.html

Large diffs are not rendered by default.

329 changes: 322 additions & 7 deletions docs/api/ListView.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/ListView.js.html

Large diffs are not rendered by default.

36 changes: 29 additions & 7 deletions docs/api/Model.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/Model.js.html

Large diffs are not rendered by default.

48 changes: 41 additions & 7 deletions docs/api/NestedCell.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/NestedCell.js.html

Large diffs are not rendered by default.

36 changes: 29 additions & 7 deletions docs/api/NestedModel.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/NestedModel.js.html

Large diffs are not rendered by default.

102 changes: 95 additions & 7 deletions docs/api/PrivateCollection.html

Large diffs are not rendered by default.

18 changes: 11 additions & 7 deletions docs/api/Router.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/Router.js.html

Large diffs are not rendered by default.

30 changes: 23 additions & 7 deletions docs/api/ServiceCell.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/ServiceCell.js.html

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions docs/api/Torso.behaviors.DataBehavior.html

Large diffs are not rendered by default.

18 changes: 11 additions & 7 deletions docs/api/Validation.html

Large diffs are not rendered by default.

144 changes: 137 additions & 7 deletions docs/api/View.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/View.js.html

Large diffs are not rendered by default.

89 changes: 82 additions & 7 deletions docs/api/ViewStateCell.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/behaviors_DataBehavior.js.html

Large diffs are not rendered by default.

45 changes: 38 additions & 7 deletions docs/api/cacheMixin.html

Large diffs are not rendered by default.

27 changes: 20 additions & 7 deletions docs/api/cellMixin.html

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions docs/api/external-Backbone-Collection.html

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions docs/api/external-Backbone-Events.html

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions docs/api/external-Backbone-History.html

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions docs/api/external-Backbone-Model.html

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions docs/api/external-Backbone-NestedModel.html

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions docs/api/external-Backbone-Router.html

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions docs/api/external-Backbone-View.html

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions docs/api/external-Backbone.html

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions docs/api/external-Handlebars-Template.html

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions docs/api/external-Handlebars.html

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions docs/api/external-jQuery-Deferred.html

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions docs/api/external-jQuery.html

Large diffs are not rendered by default.

21 changes: 14 additions & 7 deletions docs/api/global.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/handlebarsUtils.js.html

Large diffs are not rendered by default.

18 changes: 11 additions & 7 deletions docs/api/history.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/history.js.html

Large diffs are not rendered by default.

19 changes: 12 additions & 7 deletions docs/api/index.html

Large diffs are not rendered by default.

30 changes: 23 additions & 7 deletions docs/api/loadingMixin.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/mixins_cacheMixin.js.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/mixins_cellMixin.js.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/mixins_loadingMixin.js.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/mixins_modelMixin.js.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/mixins_pollingMixin.js.html

Large diffs are not rendered by default.

21 changes: 14 additions & 7 deletions docs/api/modelMixin.html

Large diffs are not rendered by default.

27 changes: 20 additions & 7 deletions docs/api/pollingMixin.html

Large diffs are not rendered by default.

45 changes: 38 additions & 7 deletions docs/api/registry.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/registry.js.html

Large diffs are not rendered by default.

21 changes: 15 additions & 6 deletions docs/api/scripts/collapse.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
function hideAllButCurrent(){
//by default all submenut items are hidden
$("nav > ul > li > ul li").hide();
//but we need to rehide them for search
document.querySelectorAll("nav > ul > li > ul li").forEach(function(parent) {
parent.style.display = "none";
});

//only current page (if it exists) should be opened
var file = window.location.pathname.split("/").pop();
$("nav > ul > li > a[href^='"+file+"']").parent().find("> ul li").show();
var file = window.location.pathname.split("/").pop().replace(/\.html/, '');
document.querySelectorAll("nav > ul > li > a").forEach(function(parent) {
var href = parent.attributes.href.value.replace(/\.html/, '');
if (file === href) {
parent.parentNode.querySelectorAll("ul li").forEach(function(elem) {
elem.style.display = "block";
});
}
});
}
$( document ).ready(function() {
hideAllButCurrent();
});

hideAllButCurrent();
4 changes: 0 additions & 4 deletions docs/api/scripts/jquery-3.1.1.min.js

This file was deleted.

12 changes: 12 additions & 0 deletions docs/api/scripts/nav.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
function scrollToNavItem() {
var path = window.location.href.split('/').pop().replace(/\.html/, '');
document.querySelectorAll('nav a').forEach(function(link) {
var href = link.attributes.href.value.replace(/\.html/, '');
if (path === href) {
link.scrollIntoView({block: 'center'});
return;
}
})
}

scrollToNavItem();
4 changes: 4 additions & 0 deletions docs/api/scripts/polyfill.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
//IE Fix, src: https://www.reddit.com/r/programminghorror/comments/6abmcr/nodelist_lacks_foreach_in_internet_explorer/
if (typeof(NodeList.prototype.forEach)!==typeof(alert)){
NodeList.prototype.forEach=Array.prototype.forEach;
}
115 changes: 78 additions & 37 deletions docs/api/scripts/search.js
Original file line number Diff line number Diff line change
@@ -1,42 +1,83 @@
$( document ).ready(function() {
jQuery.expr[':'].Contains = function(a,i,m){
return (a.textContent || a.innerText || "").toUpperCase().indexOf(m[3].toUpperCase())>=0;
};
//on search
$("#nav-search").on("keyup", function(event) {
var search = $(this).val();
if (!search) {
//no search, show all results
$("nav > ul > li").show();

if(typeof hideAllButCurrent === "function"){
//let's do what ever collapse wants to do
hideAllButCurrent();
}
else{
//menu by default should be opened
$("nav > ul > li > ul li").show();
}

var searchAttr = 'data-search-mode';
function contains(a,m){
return (a.textContent || a.innerText || "").toUpperCase().indexOf(m) !== -1;
};

//on search
document.getElementById("nav-search").addEventListener("keyup", function(event) {
var search = this.value.toUpperCase();

if (!search) {
//no search, show all results
document.documentElement.removeAttribute(searchAttr);

document.querySelectorAll("nav > ul > li:not(.level-hide)").forEach(function(elem) {
elem.style.display = "block";
});

if (typeof hideAllButCurrent === "function"){
//let's do what ever collapse wants to do
hideAllButCurrent();
} else {
//menu by default should be opened
document.querySelectorAll("nav > ul > li > ul li").forEach(function(elem) {
elem.style.display = "block";
});
}
else{
//we are searching
//show all parents
$("nav > ul > li").show();
//hide all results
$("nav > ul > li > ul li").hide();
//show results matching filter
$("nav > ul > li > ul").find("a:Contains("+search+")").parent().show();
//hide parents without children
$("nav > ul > li").each(function(){
if($(this).find("a:Contains("+search+")").length == 0 && $(this).children("ul").length === 0){
//has no child at all and does not contain text
$(this).hide();
} else {
//we are searching
document.documentElement.setAttribute(searchAttr, '');

//show all parents
document.querySelectorAll("nav > ul > li").forEach(function(elem) {
elem.style.display = "block";
});
//hide all results
document.querySelectorAll("nav > ul > li > ul li").forEach(function(elem) {
elem.style.display = "none";
});
//show results matching filter
document.querySelectorAll("nav > ul > li > ul a").forEach(function(elem) {
if (!contains(elem.parentNode, search)) {
return;
}
elem.parentNode.style.display = "block";
});
//hide parents without children
document.querySelectorAll("nav > ul > li").forEach(function(parent) {
var countSearchA = 0;
parent.querySelectorAll("a").forEach(function(elem) {
if (contains(elem, search)) {
countSearchA++;
}
else if($(this).find("a:Contains("+search+")").length == 0 && $(this).find("ul").children(':visible').length == 0){
//has no visible child and does not contain text
$(this).hide();
});

var countUl = 0;
var countUlVisible = 0;
parent.querySelectorAll("ul").forEach(function(ulP) {
// count all elements that match the search
if (contains(ulP, search)) {
countUl++;
}

// count all visible elements
var children = ulP.children
for (i=0; i<children.length; i++) {
var elem = children[i];
if (elem.style.display != "none") {
countUlVisible++;
}
}
});
}
});

if (countSearchA == 0 && countUl === 0){
//has no child at all and does not contain text
parent.style.display = "none";
} else if(countSearchA == 0 && countUlVisible == 0){
//has no visible child and does not contain text
parent.style.display = "none";
}
});
}
});
13 changes: 6 additions & 7 deletions docs/api/stickitUtils.js.html

Large diffs are not rendered by default.

24 changes: 21 additions & 3 deletions docs/api/styles/jsdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,13 @@ article a:hover, article a:active {
border-bottom-color: #222;
}

article .description a {
word-break: break-word;
}

p, ul, ol, blockquote {
margin-bottom: 1em;
line-height: 160%;
}

h1, h2, h3, h4, h5, h6 {
Expand All @@ -64,6 +69,7 @@ h1.page-title {
font-size: 48px;
margin: 1em 30px;
line-height: 100%;
word-wrap: break-word;
}

h2 {
Expand Down Expand Up @@ -178,6 +184,10 @@ nav #nav-search{
margin-top: 20px;
}

nav.wrap a{
word-wrap: break-word;
}

nav h3 {
margin-top: 12px;
font-size: 13px;
Expand Down Expand Up @@ -233,13 +243,12 @@ nav ul ul a:active {
}

nav h2 {
font-size: 12px;
margin: 0;
font-size: 13px;
margin: 10px 0 0 0;
padding: 0;
}

nav > h2 > a {
display: block;
margin: 10px 0 -10px;
color: #606 !important;
}
Expand Down Expand Up @@ -595,6 +604,15 @@ span.param-type, .params td .param-type, .param-type dd {
z-index: 1;
}

/* nav level */
.level-hide {
display: none;
}
html[data-search-mode] .level-hide {
display: block;
}


@media only screen and (min-width: 320px) and (max-width: 680px) {
body {
overflow-x: hidden;
Expand Down
36 changes: 29 additions & 7 deletions docs/api/templateRenderer.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/templateRenderer.js.html

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions docs/api/torso.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/torso.js.html

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions docs/api/validation.js.html

Large diffs are not rendered by default.

24 changes: 17 additions & 7 deletions docs/api/validationMixin.html

Large diffs are not rendered by default.

Loading

0 comments on commit b492aa7

Please sign in to comment.