nl_tokens: Get a DataContext for the built - in CanvasRenderingContext2D .
pl_tokens: function getDataContext ( ctxOrCanvas ) { if ( ctxOrCanvas instanceof HTMLCanvasElement ) { return getDataContext ( ctxOrCanvas . getContext ( '2d' ) ) ; } var ctx = ctxOrCanvas ; if ( stubGetDataContext ) { return stubGetDataContext ( ctx ) ; } else { for ( var i = 0 ; i < getDataContext . cache . <mask> ; i ++ ) { var pair = getDataContext . cache [ i ] ; if ( pair [ 0 ] == ctx ) return pair [ 1 ] ; } var dtx = new DataContext ( ctx ) ; getDataContext . cache . push ( [ ctx , dtx ] ) ; return dtx ; } }