Flat, round, designer-friendly pseudo-3D engine for canvas & SVG
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

๐Ÿž #57 remove .includes for IE11

Thx @natemoo-e for cluing me in #63

+4 -5
+3 -4
js/anchor.js
··· 55 55 var optionKeys = this.constructor.optionKeys; 56 56 57 57 for ( var key in options ) { 58 - if ( optionKeys.includes( key ) ) { 58 + if ( optionKeys.indexOf( key ) != -1 ) { 59 59 this[ key ] = options[ key ]; 60 60 } 61 61 } 62 62 }; 63 63 64 64 Anchor.prototype.addChild = function( shape ) { 65 - var index = this.children.indexOf( shape ); 66 - if ( index != -1 ) { 65 + if ( this.children.indexOf( shape ) != -1 ) { 67 66 return; 68 67 } 69 68 shape.remove(); // remove previous parent ··· 231 230 Item.optionKeys = Super.optionKeys.slice(0); 232 231 // add defaults keys to optionKeys, dedupe 233 232 Object.keys( Item.defaults ).forEach( function( key ) { 234 - if ( !Item.optionKeys.includes( key ) ) { 233 + if ( !Item.optionKeys.indexOf( key ) != 1 ) { 235 234 Item.optionKeys.push( key ); 236 235 } 237 236 });
+1 -1
js/shape.js
··· 60 60 var method = keys[0]; 61 61 var points = pathPart[ method ]; 62 62 // default to line if no instruction 63 - var isInstruction = keys.length == 1 && actionNames.includes( method ); 63 + var isInstruction = keys.length == 1 && actionNames.indexOf( method ) != -1; 64 64 if ( !isInstruction ) { 65 65 method = 'line'; 66 66 points = pathPart;