Fix loading of Block Factory in Firefox.

This commit is contained in:
Neil Fraser 2016-10-14 02:20:25 -07:00
parent 7255ec0eec
commit 7550cb1e96
3 changed files with 9 additions and 6 deletions

View file

@ -187,7 +187,10 @@ Blockly.WorkspaceSvg.prototype.getInverseScreenCTM = function() {
* Update the inverted screen CTM.
*/
Blockly.WorkspaceSvg.prototype.updateInverseScreenCTM = function() {
this.inverseScreenCTM_ = this.getParentSvg().getScreenCTM().inverse();
var ctm = this.getParentSvg().getScreenCTM();
if (ctm) {
this.inverseScreenCTM_ = ctm.inverse();
}
};
/**