Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: typekit/webfontloader
base: 41cf459bda
...
head fork: typekit/webfontloader
compare: bce89f1ff6
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 10 additions and 1 deletion.
  1. +9 −0 src-test/core/domhelpertest.js
  2. +1 −1  src/core/domhelper.js
View
9 src-test/core/domhelpertest.js
@@ -97,3 +97,12 @@ DomHelperTest.prototype.testSetStyle = function() {
assertEquals('3px', e.style.left)
assertEquals('1px', e.style.top);
};
+
+DomHelperTest.prototype.testHasSupportForStyle = function() {
+ assertUndefined(this.domHelper_.supportForStyle_);
+ assertBoolean(this.domHelper_.hasSupportForStyle_());
+ this.domHelper_.supportForStyle_ = false;
+ assertFalse(this.domHelper_.hasSupportForStyle_());
+ this.domHelper_.supportForStyle_ = true;
+ assertTrue(this.domHelper_.hasSupportForStyle_());
+};
View
2  src/core/domhelper.js
@@ -7,7 +7,7 @@
webfont.DomHelper = function(doc) {
this.document_ = doc;
- /** @type boolean|undefined */
+ /** @type {boolean|undefined} */
this.supportForStyle_ = undefined;
};

No commit comments for this range

Something went wrong with that request. Please try again.