question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Method DisplayObject.getCacheDataURL() breaks

See original GitHub issue

Version used: 1.0.0:

Calling DisplayObject.getCacheDataURL() method breaks with console error this.bitmapCache.getDataURL() method undefined.

Debugging gives this piece of breaking code in easeljs.js: 6700, in DisplayObject class definition:

	p.getCacheDataURL = function() {
		return this.bitmapCache?this.bitmapCache.getDataURL():null;
        };

Changing the code by this one works for me:

	p.getCacheDataURL = function() {
		return this.bitmapCache?this.bitmapCache.getCacheDataURL():null;
        };

BitmapCache class does not implement any getDataURL() method only getCacheDataURL()

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
MrJopcommented, Jun 20, 2018

You absolute legend! Just saved my day 😃

0reactions
lannymcniecommented, Nov 19, 2018

@danbraun The fix is in EaselJS NEXT build that you can find in the libs/ folder in GitHub. It has not yet been published to the CDN. We are planning a dot-release in the next month or so.

Cheers,

Read more comments on GitHub >

github_iconTop Results From Across the Web

EaselJS v1.0.0 API Documentation : Text
Text Class. Extends DisplayObject. Defined in: Text:41. Module: EaselJS. Display one or more lines of dynamic text ...
Read more >
@createjs/easeljs | Yarn - Package Manager
CRITICAL (may break existing content): ... Build process converted from Grunt to Gulp; Build process and shared files (Event, EventDispatcher, Ticker) moved ...
Read more >
createjs/easeljs
Event} this, chainable shortcut method for setting a number of properties on the instance.\n\t *\n\t * @param {Object} props A generic object containing ......
Read more >
Smash them walls!
... --_>-1;)if(p=x[_],Math.abs(T[p]-b[p])>.05){y=!1;break}y&&(t=t.concat(),d&&t.unshift(d) ... getCacheDataURL=function(){return this. ... DisplayObject);e.
Read more >
Untitled
widgetName + this.uuid, this.bindings = t(), this.hoverable = t(), this.focusable = t(), this. ... UP: o = this.headers[(n - 1 + s) %...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found