edx-pattern-library
Advanced tools
Comparing version 0.12.3 to 0.12.4
# Changelog | ||
## 0.12.4 (2016-04-08) | ||
* Added checks to edx-icons.js to ensure it loads with or without RequireJS | ||
## 0.12.3 (2016-04-07) | ||
@@ -4,0 +7,0 @@ * Fixed incorrect build settings for Modernizr |
{ | ||
"name": "edx-pattern-library", | ||
"version": "0.12.3", | ||
"version": "0.12.4", | ||
"author": "edX Pattern Library Team <pattern-library@edx.org>", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -1,13 +0,18 @@ | ||
define(['afontgarde'], function() { | ||
;(function(define) { | ||
'use strict'; | ||
// Old icon fonts, currently used in the platform. | ||
window.AFontGarde('FontAwesome', { | ||
glyphs: '' | ||
define(['afontgarde'], function() { | ||
// support icons that aren't yet using UXPL | ||
window.AFontGarde('FontAwesome', { | ||
glyphs: '' | ||
}); | ||
// the UXPL icons | ||
window.AFontGarde('edx-icons', { | ||
glyphs: '\uE621\uE622\uE623' | ||
}); | ||
}); | ||
// New icon fonts for UXPL to eventually replace FontAwesome. | ||
window.AFontGarde('edx-icons', { | ||
glyphs: '\uE621\uE622\uE623' | ||
}); | ||
}); | ||
}).call( | ||
this, | ||
typeof define === 'function' && define.amd ? define : | ||
(typeof RequireJS !== 'undefined' ? RequireJS.define : | ||
edx.GlobalLoader.defineAs('edxicons', 'edx-pattern-library/js/edx-icons.js')) | ||
); |
2877206
19572