Skip to content

Commit

Permalink
Fix js error and typo in README.md
Browse files Browse the repository at this point in the history
- Slice operation is valid for arguments with valid cardinal number
- Fix the js error due to it
- Fix a typo error
  • Loading branch information
AyanGhatak committed Apr 3, 2016
1 parent b182e77 commit 047c97c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Raphael.define({
- Global mouseUp tracking using el.mouseup(fn, scope, true);
- Support for customizable dash-style
- Support for attribute `key` in attr.* events
- upport for Raphael.ca for common customAttributes across papers
- Support for Raphael.ca for common customAttributes across papers
- Support for text-bound: [stroke, fill, stroke-width, padding, corner-radius, dash-style] on texts
- Support for opacity in fill color (rgba, hsla, etc) for elements
- Support for `visibility` on elements via attr
Expand Down
2 changes: 1 addition & 1 deletion source/raphael.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -6574,7 +6574,7 @@
// Check if namesake ca exists and apply it
if (element.ca[name]) {
R._lastArgIfGroup(args, true); // purge group
element.attr(name, arraySlice.call(args))
args.length && element.attr(name, arraySlice.call(args))
}
}

Expand Down

0 comments on commit 047c97c

Please sign in to comment.