Skip to content

Commit 0be13b5

Browse files
authored
Demos: fix easing demos
Closes gh-2320
1 parent 7fb4cf1 commit 0be13b5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

demos/effect/easing.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@
2626
height = 100;
2727

2828
$.each( $.easing, function( name, impl ) {
29+
// Skip _default property
30+
if ( typeof impl !== "function" ) {
31+
return;
32+
}
2933
var graph = $( "<div>" ).addClass( "graph" ).appendTo( "#graphs" ),
30-
text = $( "<div>" ).text( ++i + ". " + name ).appendTo( graph ),
34+
text = $( "<div>" ).text( name ).css({ fontSize: "13px", textAlign: "center", whiteSpace: "nowrap" }).appendTo( graph ),
3135
wrap = $( "<div>" ).appendTo( graph ).css( 'overflow', 'hidden' ),
3236
canvas = $( "<canvas>" ).appendTo( wrap )[ 0 ];
3337

0 commit comments

Comments
 (0)