Skip to content

Commit 75f2059

Browse files
committed
v1.0.12 release
This update contains a performance improvement, suggested in the issue: BorisMoore/jsviews#453 All instances of code which test whether an object, someObject, is of type string by testing: if (someObject + "" !== someObject) {...} have been replaced by more performant code: if (typeof someObject !== 'string') {...} This change applies to jsrender, jsviews and jsobservable files... Sync with other changes in v1.0.12 for JsViews
1 parent 3c4b7b1 commit 75f2059

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+229
-219
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## JsRender: best-of-breed templating
22

3+
[![CDNJS version](https://img.shields.io/cdnjs/v/jsrender.svg)](https://cdnjs.com/libraries/jsrender)
4+
35
*Simple and intuitive, powerful and extensible, lightning fast*
46

57
*For templated content in the browser or on Node.js (with Express 4, Hapi and Browserify integration)*

demos/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ <h3>Demos</h3>
3434

3535
<div class="box">
3636
<div class="desc">JsViews are interactive data-driven views, built on top of JsRender templates</div>
37-
<div class="subhead"><b><a href="http://borismoore.github.com/jsviews/demos/index.html">JsViews: Demos</a></b></div>
37+
<div class="subhead"><b><a href="http://borismoore.github.io/jsviews/demos/index.html">JsViews: Demos</a></b></div>
3838
<div class="label">JsViews and JsRender Overview:</div>
39-
<div class="subhead"><b><a href="http://borismoore.github.com/jsviews/demos/jQueryConfDemosOct2011/index.html" >Demo sequence from jQuery Conference October 2011</a></b></div>
39+
<div class="subhead"><b><a href="http://borismoore.github.io/jsviews/demos/jQueryConfDemosOct2011/index.html" >Demo sequence from jQuery Conference October 2011</a></b></div>
4040
</div>
4141

4242
<div class="subhead">Other links:</div>

demos/scenarios/01_default-values-scenario.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="http://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
4+
<script src="//code.jquery.com/jquery-3.6.1.js" type="text/javascript"></script>
55
<script src="../../jsrender.js" type="text/javascript"></script>
66
<link href="../resources/demos.css" rel="stylesheet" type="text/css" />
77

demos/scenarios/02_separators-scenario.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="http://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
4+
<script src="//code.jquery.com/jquery-3.6.1.js" type="text/javascript"></script>
55
<script src="../../jquery-1.8.0.js" type="text/javascript"></script>
66
<script src="../../jsrender.js" type="text/javascript"></script>
77
<link href="../resources/demos.css" rel="stylesheet" type="text/css" />

demos/scenarios/03_iterating-through-fields-scenario.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="http://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
4+
<script src="//code.jquery.com/jquery-3.6.1.js" type="text/javascript"></script>
55
<script src="../../jsrender.js" type="text/javascript"></script>
66
<link href="../resources/demos.css" rel="stylesheet" type="text/css" />
77

demos/scenarios/04_assigning-variables-scenario.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="http://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
4+
<script src="//code.jquery.com/jquery-3.6.1.js" type="text/javascript"></script>
55
<script src="../../jsrender.js" type="text/javascript"></script>
66
<link href="../resources/demos.css" rel="stylesheet" type="text/css" />
77

demos/scenarios/05_arrays-plus-headers-and-footers.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="http://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
4+
<script src="//code.jquery.com/jquery-3.6.1.js" type="text/javascript"></script>
55
<script src="../../jsrender.js" type="text/javascript"></script>
66
<link href="../resources/demos.css" rel="stylesheet" type="text/css" />
77

demos/step-by-step/01_inserting-data.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="http://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
4+
<script src="//code.jquery.com/jquery-3.6.1.js" type="text/javascript"></script>
55
<script src="../../jsrender.js" type="text/javascript"></script>
66
<link href="../resources/demos.css" rel="stylesheet" type="text/css" />
77
</head>

demos/step-by-step/02_compiling-named-templates-from-strings.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="http://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
4+
<script src="//code.jquery.com/jquery-3.6.1.js" type="text/javascript"></script>
55
<script src="../../jsrender.js" type="text/javascript"></script>
66
<link href="../resources/demos.css" rel="stylesheet" type="text/css" />
77

demos/step-by-step/03_converters-and-encoding.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="http://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
4+
<script src="//code.jquery.com/jquery-3.6.1.js" type="text/javascript"></script>
55
<script src="../../jsrender.js" type="text/javascript"></script>
66
<link href="../resources/demos.css" rel="stylesheet" type="text/css" />
77

demos/step-by-step/04_if-else-tag.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="http://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
4+
<script src="//code.jquery.com/jquery-3.6.1.js" type="text/javascript"></script>
55
<script src="../../jsrender.js" type="text/javascript"></script>
66
<link href="../resources/demos.css" rel="stylesheet" type="text/css" />
77

demos/step-by-step/05_for-tag.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="http://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
4+
<script src="//code.jquery.com/jquery-3.6.1.js" type="text/javascript"></script>
55
<script src="../../jsrender.js" type="text/javascript"></script>
66
<link href="../resources/demos.css" rel="stylesheet" type="text/css" />
77

demos/step-by-step/06_template-composition.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="http://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
4+
<script src="//code.jquery.com/jquery-3.6.1.js" type="text/javascript"></script>
55
<script src="../../jsrender.js" type="text/javascript"></script>
66
<link href="../resources/demos.css" rel="stylesheet" type="text/css" />
77

demos/step-by-step/07_paths.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="http://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
4+
<script src="//code.jquery.com/jquery-3.6.1.js" type="text/javascript"></script>
55
<script src="../../jsrender.js" type="text/javascript"></script>
66
<link href="../resources/demos.css" rel="stylesheet" type="text/css" />
77
</head>

demos/step-by-step/08_custom-tags.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="http://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
4+
<script src="//code.jquery.com/jquery-3.6.1.js" type="text/javascript"></script>
55
<script src="../../jsrender.js" type="text/javascript"></script>
66
<link href="../resources/demos.css" rel="stylesheet" type="text/css" />
77

demos/step-by-step/09_helper-functions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="http://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
4+
<script src="//code.jquery.com/jquery-3.6.1.js" type="text/javascript"></script>
55
<script src="../../jsrender.js" type="text/javascript"></script>
66
<link href="../resources/demos.css" rel="stylesheet" type="text/css" />
77

demos/step-by-step/10_comparison-tests.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="http://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
4+
<script src="//code.jquery.com/jquery-3.6.1.js" type="text/javascript"></script>
55
<script src="../../jsrender.js" type="text/javascript"></script>
66
<link href="../resources/demos.css" rel="stylesheet" type="text/css" />
77

demos/step-by-step/11_accessing-parent-data.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="http://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
4+
<script src="//code.jquery.com/jquery-3.6.1.js" type="text/javascript"></script>
55
<script src="../../jsrender.js" type="text/javascript"></script>
66
<link href="../resources/demos.css" rel="stylesheet" type="text/css" />
77

demos/step-by-step/12_passing-in-context.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="http://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
4+
<script src="//code.jquery.com/jquery-3.6.1.js" type="text/javascript"></script>
55
<script src="../../jsrender.js" type="text/javascript"></script>
66
<link href="../resources/demos.css" rel="stylesheet" type="text/css" />
77

demos/step-by-step/13_associating-helpers-with-templates.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="http://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
4+
<script src="//code.jquery.com/jquery-3.6.1.js" type="text/javascript"></script>
55
<script src="../../jsrender.js" type="text/javascript"></script>
66
<link href="../resources/demos.css" rel="stylesheet" type="text/css" />
77

demos/variants/accessing-templates/01_compiling-template-objects-from-strings.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="http://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
4+
<script src="//code.jquery.com/jquery-3.6.1.js" type="text/javascript"></script>
55
<script src="../../../jsrender.js" type="text/javascript"></script>
66
<link href="../../resources/demos.css" rel="stylesheet" type="text/css" />
77

demos/variants/accessing-templates/02_registering-named-template-from-script-declaration.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="http://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
4+
<script src="//code.jquery.com/jquery-3.6.1.js" type="text/javascript"></script>
55
<script src="../../../jsrender.js" type="text/javascript"></script>
66
<link href="../../resources/demos.css" rel="stylesheet" type="text/css" />
77

demos/variants/accessing-templates/03_getting-template-objects-from-script-declaration.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="http://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
4+
<script src="//code.jquery.com/jquery-3.6.1.js" type="text/javascript"></script>
55
<script src="../../../jsrender.js" type="text/javascript"></script>
66
<link href="../../resources/demos.css" rel="stylesheet" type="text/css" />
77

demos/variants/accessing-templates/04_template-composition-subtemplates.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="http://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
4+
<script src="//code.jquery.com/jquery-3.6.1.js" type="text/javascript"></script>
55
<script src="../../../jsrender.js" type="text/javascript"></script>
66
<link href="../../resources/demos.css" rel="stylesheet" type="text/css" />
77

demos/variants/accessing-templates/05_template-composition-templateobjects.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script src="http://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script>
4+
<script src="//code.jquery.com/jquery-3.6.1.js" type="text/javascript"></script>
55
<script src="../../../jsrender.js" type="text/javascript"></script>
66
<link href="../../resources/demos.css" rel="stylesheet" type="text/css" />
77

0 commit comments

Comments
 (0)