creditable
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -15,2 +15,3 @@ // Input a credit card number string, returns a key signifying the type of credit card it is | ||
this.$creditCard = this.$el.closest( "form" ).find( "[data-creditable-creditcard]" ); | ||
this.originalMaxlength = parseInt( this.$el.attr( "maxlength" ), 10 ); | ||
@@ -26,8 +27,4 @@ var self = this; | ||
var maxlen = this.getMaxlength(); | ||
if( maxlen ) { | ||
this.$el.attr( "maxlength", maxlen ); | ||
} else { | ||
this.$el.removeAttr( "maxlength" ); | ||
} | ||
this.$el.attr( "placeholder", this.getPlaceholder( maxlen || 4 ) ); | ||
this.$el.attr( "maxlength", maxlen || this.originalMaxlength ); | ||
this.$el.attr( "placeholder", this.getPlaceholder( maxlen || this.originalMaxLength ) ); | ||
}; | ||
@@ -34,0 +31,0 @@ |
{ | ||
"name": "creditable", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Utilities for working with credit card form input.", | ||
@@ -5,0 +5,0 @@ "main": "creditablecardtype.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5534
63