diff --git a/examples/useContext.html b/examples/useContext.html index f770cd294..4092713e9 100644 --- a/examples/useContext.html +++ b/examples/useContext.html @@ -22,7 +22,7 @@ state: function () { return { expand: false, - cssScale: 2.0 + cssScale: true }; }, childContext: ["text", "cssScale"], @@ -44,7 +44,7 @@ var TempModel = BI.inherit(BI.Model, { state: function () { return { - cssScale: 1.0 + cssScale: false }; }, childContext: ["cssScale"], @@ -54,7 +54,7 @@ var oldFormat = BI.pixFormat; BI.pixFormat = function (pix, border) { var context = BI.useContext("cssScale"); - if (!context || context.model.cssScale <=1) { + if (!context || context.model.cssScale === false) { return oldFormat.apply(this, arguments); } if (!BI.isNumber(pix)) { @@ -69,7 +69,7 @@ var oldPix = BI.toPix; BI.toPix = function (pix, border) { var context = BI.useContext("cssScale"); - if (!context || context.model.cssScale <=1) { + if (!context || context.model.cssScale === false) { return oldFormat.apply(this, arguments); } if (!BI.isNumber(pix)) {