Skip to content

Commit

Permalink
Regenerate assets
Browse files Browse the repository at this point in the history
  • Loading branch information
nosir committed Oct 5, 2016
1 parent 5000443 commit 2d89184
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"form",
"input"
],
"version": "0.7.9",
"version": "0.7.10",
"author": {
"name": "Max Huang",
"email": "[email protected]",
Expand Down
6 changes: 3 additions & 3 deletions dist/cleave-angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ return /******/ (function(modules) { // webpackBootstrap
setRawValue: function (value) {
var owner = this, pps = owner.properties;

value = value.toString();
value = value !== undefined ? value.toString() : '';

if (pps.numeral) {
value = value.replace('.', pps.numeralDecimalMark);
Expand Down Expand Up @@ -952,14 +952,14 @@ angular.module('cleave.js', [])
require: 'ngModel',

scope: {
cleave: '=',
cleave: '&',
onValueChange: '&?'
},

compile: function () {
return {
pre: function ($scope, $element, attrs, ngModelCtrl) {
$scope.cleave = new window.Cleave($element[0], $scope.cleave);
$scope.cleave = new window.Cleave($element[0], $scope.cleave());

ngModelCtrl.$formatters.push(function (val) {
$scope.cleave.setRawValue(val);
Expand Down
4 changes: 2 additions & 2 deletions dist/cleave-angular.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cleave-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ return /******/ (function(modules) { // webpackBootstrap
var owner = this,
pps = owner.properties;

value = value.toString();
value = value !== undefined ? value.toString() : '';

if (pps.numeral) {
value = value.replace('.', pps.numeralDecimalMark);
Expand Down
4 changes: 2 additions & 2 deletions dist/cleave-react.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cleave.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ return /******/ (function(modules) { // webpackBootstrap
setRawValue: function (value) {
var owner = this, pps = owner.properties;

value = value.toString();
value = value !== undefined ? value.toString() : '';

if (pps.numeral) {
value = value.replace('.', pps.numeralDecimalMark);
Expand Down
4 changes: 2 additions & 2 deletions dist/cleave.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"form",
"input"
],
"version": "0.7.9",
"version": "0.7.10",
"author": {
"name": "Max Huang",
"url": "http://github.com/nosir",
Expand Down
4 changes: 2 additions & 2 deletions src/Cleave.angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ angular.module('cleave.js', [])
compile: function () {
return {
pre: function ($scope, $element, attrs, ngModelCtrl) {
$scope.cleave = new window.Cleave($element[0], $scope.cleave() );
$scope.cleave = new window.Cleave($element[0], $scope.cleave());

ngModelCtrl.$formatters.push(function (val) {
$scope.cleave.setRawValue(val ? val : '');
$scope.cleave.setRawValue(val);

return $scope.cleave.getFormattedValue();
});
Expand Down
2 changes: 1 addition & 1 deletion src/Cleave.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ Cleave.prototype = {
setRawValue: function (value) {
var owner = this, pps = owner.properties;

value = value.toString();
value = value !== undefined ? value.toString() : '';

if (pps.numeral) {
value = value.replace('.', pps.numeralDecimalMark);
Expand Down
2 changes: 1 addition & 1 deletion src/Cleave.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ var Cleave = React.createClass({
var owner = this,
pps = owner.properties;

value = value.toString();
value = value !== undefined ? value.toString() : '';

if (pps.numeral) {
value = value.replace('.', pps.numeralDecimalMark);
Expand Down

0 comments on commit 2d89184

Please sign in to comment.