aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/core/converter/number-converter.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/montage/core/converter/number-converter.js')
-rwxr-xr-xnode_modules/montage/core/converter/number-converter.js28
1 files changed, 18 insertions, 10 deletions
diff --git a/node_modules/montage/core/converter/number-converter.js b/node_modules/montage/core/converter/number-converter.js
index f440f9a2..3eb3af64 100755
--- a/node_modules/montage/core/converter/number-converter.js
+++ b/node_modules/montage/core/converter/number-converter.js
@@ -212,7 +212,8 @@ var NumberValidator = exports.NumberValidator = Montage.create(Validator, /** @l
212 @default {Boolean} true 212 @default {Boolean} true
213 */ 213 */
214 allowFloat: { 214 allowFloat: {
215 value: true 215 value: true,
216 serializable: true
216 }, 217 },
217 218
218 /** 219 /**
@@ -220,7 +221,8 @@ var NumberValidator = exports.NumberValidator = Montage.create(Validator, /** @l
220 @default {Boolean} true 221 @default {Boolean} true
221 */ 222 */
222 allowNegative: { 223 allowNegative: {
223 value: true 224 value: true,
225 serializable: true
224 }, 226 },
225 227
226 /** 228 /**
@@ -265,7 +267,8 @@ var NumberConverter = exports.NumberConverter = Montage.create(Converter, /** @l
265 */ 267 */
266 // do not allow partial conversion 268 // do not allow partial conversion
267 allowPartialConversion: { 269 allowPartialConversion: {
268 value: false 270 value: false,
271 serializable: true
269 }, 272 },
270 /** 273 /**
271 @type {Function} 274 @type {Function}
@@ -281,14 +284,16 @@ var NumberConverter = exports.NumberConverter = Montage.create(Converter, /** @l
281 */ 284 */
282 // valid fn values are: 285 // valid fn values are:
283 shorten: { 286 shorten: {
284 value: null 287 value: null,
288 serializable: true
285 }, 289 },
286 /** 290 /**
287 @type {Property} 291 @type {Property}
288 @default {Number} 2 292 @default {Number} 2
289 */ 293 */
290 decimals: { 294 decimals: {
291 value: 2 295 value: 2,
296 serializable: true
292 }, 297 },
293 298
294 /** 299 /**
@@ -296,7 +301,8 @@ var NumberConverter = exports.NumberConverter = Montage.create(Converter, /** @l
296 @default {Number} null 301 @default {Number} null
297 */ 302 */
298 round: { 303 round: {
299 value: null 304 value: null,
305 serializable: true
300 }, 306 },
301 307
302 /** 308 /**
@@ -306,19 +312,21 @@ var NumberConverter = exports.NumberConverter = Montage.create(Converter, /** @l
306 value: /(\d+)(\d{3})/ 312 value: /(\d+)(\d{3})/
307 }, 313 },
308 314
309 /** 315 /**
310 @type {Property} 316 @type {Property}
311 @default {Boolean} true 317 @default {Boolean} true
312 */ 318 */
313 allowFloat: { 319 allowFloat: {
314 value: true 320 value: true,
321 serializable: true
315 }, 322 },
316 /** 323 /**
317 @type {Property} 324 @type {Property}
318 @default {Boolean} true 325 @default {Boolean} true
319 */ 326 */
320 allowNegative: { 327 allowNegative: {
321 value: true 328 value: true,
329 serializable: true
322 }, 330 },
323 331
324 // credit: sugar.js - https://github.com/andrewplummer/Sugar 332 // credit: sugar.js - https://github.com/andrewplummer/Sugar