Skip to content

Commit

Permalink
removed debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
MeTaNoV committed Jan 11, 2016
1 parent 001c46e commit dd1ef57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "numbro-element",
"version": "1.0.0",
"version": "1.0.1",
"authors": [
"Pascal Gula aka MeTaNoV <[email protected]>"
],
Expand Down
6 changes: 2 additions & 4 deletions numbro-element.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
### Example
<numbro-element
<numbro-element
value="1000"
format="0,0">
</numbro-element>
Expand Down Expand Up @@ -134,7 +134,7 @@
var formatted;
if (this.currency) {
if (this.format) {
formatted = numbro(value).formatCurrency(this.format);
formatted = numbro(value).formatCurrency(this.format);
} else {
formatted = numbro(value).formatCurrency();
}
Expand Down Expand Up @@ -188,10 +188,8 @@
* @param {string} input value.
*/
_render: function(value) {
console.log("formatted: " + value);
var regex = /([^\.,\d]*)([\.,\d]*)(\D*)/i;
var result = regex.exec(value).slice(1);
console.log("result: " + result);
this.$.prefix.innerHTML = result[0];
this.$.value.innerHTML = result[1];
this.$.suffix.innerHTML = result[2];
Expand Down

0 comments on commit dd1ef57

Please sign in to comment.