Skip to content

Instantly share code, notes, and snippets.

View reedling78's full-sized avatar

Reed Rizzo reedling78

  • Monotype Imaging
View GitHub Profile
(function() {
'use strict';
define([], function() {
return {
browserDetect: function() {
var returnVal = 'NOT IE';
var bName = window.navigator.userAgent;
var bVersion = window.navigator.appVersion;
if (bVersion.indexOf("MSIE 7.0") >= 1 || bVersion.indexOf("msie 7.0") >= 1) {
@reedling78
reedling78 / AMD: Polyfills.js
Last active August 29, 2015 13:55
Polyfills
(function() {
'use strict';
define([], function() {
return {
consolelog: function() {
var alertFallback = true;
if (typeof console === "undefined" || typeof console.log === "undefined") {
console = {};
if (alertFallback) {
console.log = function(msg) {