Sha256: 54c787d4317940a953d6efb4cdec3f084c2d7fa8bf72f31aa2c2511698157a42

Contents?: true

Size: 653 Bytes

Versions: 66

Compression:

Stored size: 653 Bytes

Contents

var Browser;

Browser = {
  version: function(v) {
    var version, app_version;
    app_version = navigator.appVersion;
    Debug.log("Browser app_version: ", app_version);
  
    if (app_version.match("MSIE 6.0")) {
      version = 6.0;
    }
  
    if (v) {
      return (version === v);
    } else {
      return version;
    }
  },

  ie: function() {
    return navigator.appName.match("Internet Explorer");
  },

  ie6: function() {
    return (Browser.ie() && Browser.version(6.0));
  },

  ie7: function() {
    return (Browser.ie() && Browser.version(7.0));
  },

  ie8: function() {
    return (Browser.ie() && Browser.version(8.0));
  }
};

Version data entries

66 entries across 52 versions & 1 rubygems

Version Path
ymdp-1.4.7 lib/ymdp/javascripts/prototype/browser.js
ymdp-1.4.6 lib/ymdp/javascripts/prototype/browser.js
ymdp-1.4.5 lib/ymdp/javascripts/prototype/browser.js
ymdp-1.4.4 lib/ymdp/javascripts/prototype/browser.js
ymdp-1.4.3 lib/ymdp/javascripts/prototype/browser.js
ymdp-1.4.2 lib/ymdp/javascripts/prototype/browser.js
ymdp-1.4.1 lib/ymdp/javascripts/prototype/browser.js
ymdp-1.4.0 lib/ymdp/javascripts/prototype/browser.js
ymdp-1.3.4 lib/ymdp/javascripts/prototype/browser.js
ymdp-1.3.3 lib/ymdp/javascripts/prototype/browser.js
ymdp-1.3.2 lib/ymdp/javascripts/prototype/browser.js
ymdp-1.3.1 lib/ymdp/javascripts/prototype/browser.js
ymdp-1.3.0 lib/ymdp/javascripts/prototype/browser.js
ymdp-1.2.0 lib/ymdp/javascripts/prototype/browser.js
ymdp-1.1.0 lib/ymdp/javascripts/prototype/browser.js
ymdp-1.0.1 lib/ymdp/javascripts/prototype/browser.js
ymdp-1.0.0 lib/ymdp/javascripts/prototype/browser.js
ymdp-0.10.2 lib/ymdp/javascripts/prototype/browser.js
ymdp-0.10.1 lib/ymdp/javascripts/prototype/browser.js
ymdp-0.10.0 lib/ymdp/javascripts/prototype/browser.js