Skip to content
This repository was archived by the owner on Dec 11, 2021. It is now read-only.

Performance: Add topcoat framework to test suite #45

Closed
wants to merge 3 commits into from

Conversation

rohmulan
Copy link
Contributor

@rohmulan rohmulan commented Mar 6, 2015

Added topcoat framework to the test suite
It is tested for following types of buttons

  • button
  • button - large
  • button -quiet
  • button- large and quiet
  • button - cta( click to action )
  • button large and cta
  • icon button (/large/quiet)
  • button with icons

],
button: {
generator: function( options ) {
// We need to check whether its a normal button or icon button, as markup and type differs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blank line before comments

var buttonClass = 'topcoat' + options.type + '-button'+ options.size;

//Icon Buttons donot support the cta button type
if( options.type !== '-icon' || options.state !== '--cta' ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single quotes?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spacing if (

@arthurvr
Copy link
Contributor

arthurvr commented Mar 7, 2015

This whole PR uses the wrong indentation. We use tabs.


//Add icon only if it is a icon-button or there is an icon set
if( options.icon !== "" || options.type === "-icon" ) {
icon = "<span class='";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be combined with line 29

@arschmitz
Copy link
Contributor

Everything i commented on mobile also applies to desktop version

@arschmitz
Copy link
Contributor

Also please run grunt before doing updates again much of this would have been caught by jshint and jscs

@arthurvr
Copy link
Contributor

arthurvr commented Mar 8, 2015

All code styling is addressed! Thanks @geekman-rohit!

@arschmitz
Copy link
Contributor

@geekman-rohit this look good the only last thing is for future PR's take a look at http://contribute.jquery.org/commits-and-pull-requests/#commit-guidelines The first commit conforms and i'm going to squash these all to one commit anyway so ill just land this one.

@arschmitz arschmitz closed this in ac32e00 Mar 10, 2015
@rohmulan
Copy link
Contributor Author

@arschmitz , I had been through it, but I was not careful enough with minor things like spaces. now I understand the readability the extra spaces is going to give the code. Will be more careful in future PRs.
Thanks for landing it, and for putting up while I got used to your coding standards.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants