Skip to content

Commit

Permalink
Removed .min, subscripting
Browse files Browse the repository at this point in the history
  • Loading branch information
leongersen committed Sep 6, 2014
1 parent 2bf0af4 commit cda6930
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion test.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<link href="http://code.jquery.com/qunit/qunit-1.12.0.css" rel="stylesheet">
<script src="http://code.jquery.com/qunit/qunit-1.12.0.js"></script>
<script src="wNumb.min.js"></script>
<script src="wNumb.js"></script>
</head>

<div id="qunit"></div>
Expand Down
10 changes: 5 additions & 5 deletions wNumb.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@ var
if ( optionValue === undefined ) {

// Only default if negativeBefore isn't set.
if ( optionName === 'negative' && !filteredOptions['negativeBefore'] ) {
if ( optionName === 'negative' && !filteredOptions.negativeBefore ) {
filteredOptions[optionName] = '-';
// Don't set a default for mark when 'thousand' is set.
} else if ( optionName === 'mark' && filteredOptions['thousand'] !== '.' ) {
} else if ( optionName === 'mark' && filteredOptions.thousand !== '.' ) {
filteredOptions[optionName] = '.';
} else {
filteredOptions[optionName] = false;
Expand Down Expand Up @@ -319,17 +319,17 @@ var
options = validate(options);

// Call 'formatTo' with proper arguments.
this['to'] = function ( input ) {
this.to = function ( input ) {
return passAll(options, formatTo, input);
};

// Call 'formatFrom' with proper arguments.
this['from'] = function ( input ) {
this.from = function ( input ) {
return passAll(options, formatFrom, input);
};
}

/** @export */
window['wNumb'] = wNumb;
window.wNumb = wNumb;

}());
4 changes: 0 additions & 4 deletions wNumb.min.js

This file was deleted.

0 comments on commit cda6930

Please # to comment.