Skip to content

Commit 645902a

Browse files
committed
v1.0.10 release
Sync with changes in v1.0.10 for JsViews Minor bug fixes
1 parent ad2a627 commit 645902a

12 files changed

Lines changed: 43 additions & 35 deletions

jsrender-node.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/*! JsRender v1.0.9: http://jsviews.com/#jsrender */
1+
/*! JsRender v1.0.10: http://jsviews.com/#jsrender */
22
/*! **VERSION FOR NODE.JS** (For WEB see http://jsviews.com/download/jsrender.js) */
33
/*
44
* Best-of-breed templating in browser or on Node.js.
55
* Does not require jQuery, or HTML DOM
66
* Integrates with JsViews (http://jsviews.com/#jsviews)
77
*
8-
* Copyright 2020, Boris Moore
8+
* Copyright 2021, Boris Moore
99
* Released under the MIT License.
1010
*/
1111

@@ -20,7 +20,7 @@ if (typeof exports !== 'object' ) {
2020
//========================== Top-level vars ==========================
2121

2222
// global var is the this object, which is window when running in the usual browser environment
23-
var versionNumber = "v1.0.9",
23+
var versionNumber = "v1.0.10",
2424
$, jsvStoreName, rTag, rTmplString, topView, $views,
2525
_ocp = "_ocp", // Observable contextual parameter
2626

@@ -2181,7 +2181,8 @@ function parseParams(params, pathBindings, tmpl, isLinkExpr) {
21812181
}
21822182
if (rtPrnDot && bindings) {
21832183
// This is a binding to a path in which an object is returned by a helper/data function/expression, e.g. foo()^x.y or (a?b:c)^x.y
2184-
// We create a compiled function to get the object instance (which will be called when the dependent data of the subexpression changes, to return the new object, and trigger re-binding of the subsequent path)
2184+
// We create a compiled function to get the object instance (which will be called when the dependent data of the subexpression changes,
2185+
// to return the new object, and trigger re-binding of the subsequent path)
21852186
expr = pathStart[fnDp-1];
21862187
if (full.length - 1 > ind - (expr || 0)) { // We need to compile a subexpression
21872188
expr = $.trim(full.slice(expr, ind + all.length));

jsrender.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/*! JsRender v1.0.9: http://jsviews.com/#jsrender */
1+
/*! JsRender v1.0.10: http://jsviews.com/#jsrender */
22
/*! **VERSION FOR WEB** (For NODE.JS see http://jsviews.com/download/jsrender-node.js) */
33
/*
44
* Best-of-breed templating in browser or on Node.js.
55
* Does not require jQuery, or HTML DOM
66
* Integrates with JsViews (http://jsviews.com/#jsviews)
77
*
8-
* Copyright 2020, Boris Moore
8+
* Copyright 2021, Boris Moore
99
* Released under the MIT License.
1010
*/
1111

@@ -44,7 +44,7 @@ var setGlobals = $ === false; // Only set globals if script block in browser (no
4444

4545
$ = $ && $.fn ? $ : global.jQuery; // $ is jQuery passed in by CommonJS loader (Browserify), or global jQuery.
4646

47-
var versionNumber = "v1.0.9",
47+
var versionNumber = "v1.0.10",
4848
jsvStoreName, rTag, rTmplString, topView, $views, $expando,
4949
_ocp = "_ocp", // Observable contextual parameter
5050

@@ -2231,7 +2231,8 @@ function parseParams(params, pathBindings, tmpl, isLinkExpr) {
22312231
}
22322232
if (rtPrnDot && bindings) {
22332233
// This is a binding to a path in which an object is returned by a helper/data function/expression, e.g. foo()^x.y or (a?b:c)^x.y
2234-
// We create a compiled function to get the object instance (which will be called when the dependent data of the subexpression changes, to return the new object, and trigger re-binding of the subsequent path)
2234+
// We create a compiled function to get the object instance (which will be called when the dependent data of the subexpression changes,
2235+
// to return the new object, and trigger re-binding of the subsequent path)
22352236
expr = pathStart[fnDp-1];
22362237
if (full.length - 1 > ind - (expr || 0)) { // We need to compile a subexpression
22372238
expr = $.trim(full.slice(expr, ind + all.length));

jsrender.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jsrender.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jsrender",
3-
"version": "v1.0.9",
3+
"version": "v1.0.10",
44
"description": "Best-of-breed templating in browser or on Node.js (with Express 4, Hapi and Browserify integration)",
55
"main": "./jsrender-node.js",
66
"browser": "./jsrender.js",

test/browserify/bundles/1-bundle.js

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/browserify/bundles/12-nested-bundle.js

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/browserify/bundles/2-bundle.js

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/browserify/bundles/3-bundle.js

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/browserify/bundles/htm-jsrender-tmpl-bundle.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
2-
/*! JsRender v1.0.9: http://jsviews.com/#jsrender */
2+
/*! JsRender v1.0.10: http://jsviews.com/#jsrender */
33
/*! **VERSION FOR WEB** (For NODE.JS see http://jsviews.com/download/jsrender-node.js) */
44
/*
55
* Best-of-breed templating in browser or on Node.js.
@@ -45,7 +45,7 @@ var setGlobals = $ === false; // Only set globals if script block in browser (no
4545

4646
$ = $ && $.fn ? $ : global.jQuery; // $ is jQuery passed in by CommonJS loader (Browserify), or global jQuery.
4747

48-
var versionNumber = "v1.0.9",
48+
var versionNumber = "v1.0.10",
4949
jsvStoreName, rTag, rTmplString, topView, $views, $expando,
5050
_ocp = "_ocp", // Observable contextual parameter
5151

@@ -2232,7 +2232,8 @@ function parseParams(params, pathBindings, tmpl, isLinkExpr) {
22322232
}
22332233
if (rtPrnDot && bindings) {
22342234
// This is a binding to a path in which an object is returned by a helper/data function/expression, e.g. foo()^x.y or (a?b:c)^x.y
2235-
// We create a compiled function to get the object instance (which will be called when the dependent data of the subexpression changes, to return the new object, and trigger re-binding of the subsequent path)
2235+
// We create a compiled function to get the object instance (which will be called when the dependent data of the subexpression changes,
2236+
// to return the new object, and trigger re-binding of the subsequent path)
22362237
expr = pathStart[fnDp-1];
22372238
if (full.length - 1 > ind - (expr || 0)) { // We need to compile a subexpression
22382239
expr = $.trim(full.slice(expr, ind + all.length));

0 commit comments

Comments
 (0)