Skip to content

Commit cda6930

Browse files
committed
Removed .min, subscripting
1 parent 2bf0af4 commit cda6930

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

test.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<link href="http://code.jquery.com/qunit/qunit-1.12.0.css" rel="stylesheet">
55
<script src="http://code.jquery.com/qunit/qunit-1.12.0.js"></script>
6-
<script src="wNumb.min.js"></script>
6+
<script src="wNumb.js"></script>
77
</head>
88

99
<div id="qunit"></div>

wNumb.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,10 @@ var
245245
if ( optionValue === undefined ) {
246246

247247
// Only default if negativeBefore isn't set.
248-
if ( optionName === 'negative' && !filteredOptions['negativeBefore'] ) {
248+
if ( optionName === 'negative' && !filteredOptions.negativeBefore ) {
249249
filteredOptions[optionName] = '-';
250250
// Don't set a default for mark when 'thousand' is set.
251-
} else if ( optionName === 'mark' && filteredOptions['thousand'] !== '.' ) {
251+
} else if ( optionName === 'mark' && filteredOptions.thousand !== '.' ) {
252252
filteredOptions[optionName] = '.';
253253
} else {
254254
filteredOptions[optionName] = false;
@@ -319,17 +319,17 @@ var
319319
options = validate(options);
320320

321321
// Call 'formatTo' with proper arguments.
322-
this['to'] = function ( input ) {
322+
this.to = function ( input ) {
323323
return passAll(options, formatTo, input);
324324
};
325325

326326
// Call 'formatFrom' with proper arguments.
327-
this['from'] = function ( input ) {
327+
this.from = function ( input ) {
328328
return passAll(options, formatFrom, input);
329329
};
330330
}
331331

332332
/** @export */
333-
window['wNumb'] = wNumb;
333+
window.wNumb = wNumb;
334334

335335
}());

wNumb.min.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)