webfontloader 1.6.13 → 1.6.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08bdf22ed6858b0f76ddb40a79bd18d614fc893d
4
- data.tar.gz: e8439db5aff1a0d8cf2e23ac5432ab78ce4737e9
3
+ metadata.gz: 7f4d104ca3a7035ef911d6d02709210d1fe77166
4
+ data.tar.gz: 06325fc86b4881f9086b7296e8f68d63fecda14e
5
5
  SHA512:
6
- metadata.gz: d534b3b3a95ec298d9b9f70471884e523be21416dcfa711d710f25d1a42c2c3db7952850b140efcc6999290f6c1adeb008097e945b1c757c721633cc18f1a2a4
7
- data.tar.gz: 4a1fefe31a9446cb34c6e375a7ccce605c3a7220ddbad398affd8e8e7c0125c00405971f9452d3dd2672837f871cbf9a670af9abeac31a85fc36b9785683568f
6
+ metadata.gz: bfb3fca3cff291c314bf636b42f5da66c9f0ef9dd3cd3c0b9344fbfb29c67f809fd6ab71eaf7bd46d1f47f633d673ab9a42b6a76d08047ff19f26e504923455c
7
+ data.tar.gz: 67d2f192d4f3d078c493b522f4b4cf5611487e180ff8afc23bec8c7c70327e5a164609b0de11e9b24fdea27a2fd6296d491ee092b14c2dfab36d3db4325f2d44
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ v1.6.14 (November 24, 2015)
2
+
3
+ * Change media type check to be more reliable on old IE.
4
+
1
5
  v1.6.13 (November 24, 2015)
2
6
 
3
7
  * Fix media type check in IE/Edge.
data/lib/webfontloader.rb CHANGED
@@ -3,7 +3,7 @@ require 'yaml'
3
3
  require 'webfontloader/modules'
4
4
 
5
5
  module WebFontLoader
6
- VERSION = '1.6.13'
6
+ VERSION = '1.6.14'
7
7
 
8
8
  ProjectRoot = File.expand_path(File.dirname(__FILE__) + "/..")
9
9
 
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webfontloader",
3
- "version": "1.6.12",
3
+ "version": "1.6.13",
4
4
  "description": "Web Font Loader gives you added control when using linked fonts via @font-face.",
5
5
  "main": "webfontloader.js",
6
6
  "scripts": {
@@ -353,7 +353,7 @@ goog.scope(function () {
353
353
  function onMediaAvailable(callback) {
354
354
  for (var i = 0; i < sheets.length; i++) {
355
355
  if (sheets[i].href && sheets[i].href.indexOf(href) !== -1 &&
356
- (sheets[i].media === "all" || sheets[i].media[0] === "all")) {
356
+ (sheets[i].media && sheets[i].media === "all" || sheets[i].media.mediaText === "all")) {
357
357
  return callback();
358
358
  }
359
359
  }
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'webfontloader'
16
- s.version = '1.6.13'
16
+ s.version = '1.6.14'
17
17
  s.date = '2015-11-24'
18
18
 
19
19
  ## Make sure your summary is short. The description may be as long
data/webfontloader.js CHANGED
@@ -1,4 +1,4 @@
1
- /* Web Font Loader v1.6.13 - (c) Adobe Systems, Google. License: Apache 2.0 */
1
+ /* Web Font Loader v1.6.14 - (c) Adobe Systems, Google. License: Apache 2.0 */
2
2
  (function(){function aa(a,b,c){return a.call.apply(a.bind,arguments)}function ba(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function n(a,b,c){n=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?aa:ba;return n.apply(null,arguments)}var p=Date.now||function(){return+new Date};function q(a,b){this.F=a;this.k=b||a;this.H=this.k.document}var ca=!!window.FontFace;q.prototype.createElement=function(a,b,c){a=this.H.createElement(a);if(b)for(var d in b)b.hasOwnProperty(d)&&("style"==d?a.style.cssText=b[d]:a.setAttribute(d,b[d]));c&&a.appendChild(this.H.createTextNode(c));return a};function s(a,b,c){a=a.H.getElementsByTagName(b)[0];a||(a=document.documentElement);a.insertBefore(c,a.lastChild)}
3
3
  function t(a,b,c){b=b||[];c=c||[];for(var d=a.className.split(/\s+/),e=0;e<b.length;e+=1){for(var f=!1,g=0;g<d.length;g+=1)if(b[e]===d[g]){f=!0;break}f||d.push(b[e])}b=[];for(e=0;e<d.length;e+=1){f=!1;for(g=0;g<c.length;g+=1)if(d[e]===c[g]){f=!0;break}f||b.push(d[e])}a.className=b.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function u(a,b){for(var c=a.className.split(/\s+/),d=0,e=c.length;d<e;d++)if(c[d]==b)return!0;return!1}
4
4
  function v(a){if("string"===typeof a.fa)return a.fa;var b=a.k.location.protocol;"about:"==b&&(b=a.F.location.protocol);return"https:"==b?"https:":"http:"}function x(a,b,c){function d(){l&&e&&f&&(l(g),l=null)}b=a.createElement("link",{rel:"stylesheet",href:b,media:"all"});var e=!1,f=!0,g=null,l=c||null;ca?(b.onload=function(){e=!0;d()},b.onerror=function(){e=!0;g=Error("Stylesheet failed to load");d()}):setTimeout(function(){e=!0;d()},0);s(a,"head",b)}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webfontloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.13
4
+ version: 1.6.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Carver