Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ButtonSuccess( type ){
- this.color = type.color || 'green';
- }
- function ButtonError( type ){
- this.color = type.color || 'red';
- }
- function ButtonWarning( type ){
- this.color = type.color || 'yellow';
- }
- function ButtonNormal( type ){
- this.color = type.color || 'blue';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement