Skip to content

Commit f0227ed

Browse files
committed
Merge branch 'develop' into testing
2 parents 3068703 + dd4523b commit f0227ed

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/core/scenes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module.exports = {
4444
* Crafty.e("2D, DOM, Text")
4545
* .attr({ w: 100, h: 20, x: 150, y: 120 })
4646
* .text("Loading")
47-
* .css({ "text-align": "center"})
47+
* .css({ "border": "1px solid red"})
4848
* .textColor("#FFFFFF");
4949
* });
5050
*

src/graphics/dom.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ Crafty.c("DOM", {
234234
*
235235
* For setting one style, simply pass the style as the first argument and the value as the second.
236236
*
237-
* The notation can be CSS or JS (e.g. `text-align` or `textAlign`).
237+
* The notation can be CSS or JS (e.g. `border-radius` or `borderRadius`).
238238
*
239239
* To return a value, pass the property.
240240
*
@@ -243,9 +243,9 @@ Crafty.c("DOM", {
243243
*
244244
* @example
245245
* ~~~
246-
* this.css({'text-align': 'center', 'text-decoration': 'line-through'});
247-
* this.css("textAlign", "center");
248-
* this.css("text-align"); //returns center
246+
* this.css({'border-radius': '5px', 'text-decoration': 'line-through'});
247+
* this.css("borderRadius", "10px");
248+
* this.css("border-radius"); //returns 10px
249249
* ~~~
250250
*/
251251
css: function (obj, value) {

0 commit comments

Comments
 (0)