Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/dvv/backbone
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Apr 18, 2011
2 parents 12661ff + 94edc63 commit 5f3135f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backbone.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
Backbone.VERSION = '0.3.3';

// Require Underscore, if we're on the server, and it's not already present.
var _ = root._;
var _ = root.$ && root.$.ender ? root.$ : root._;
if (!_ && (typeof require !== 'undefined')) _ = require('underscore')._;

// For Backbone's purposes, either jQuery or Zepto owns the `$` variable.
var $ = root.jQuery || root.Zepto;
var $ = root.$ && root.$.ender ? root.$ : (root.jQuery || root.Zepto);

// Runs Backbone.js in *noConflict* mode, returning the `Backbone` variable
// to its previous owner. Returns a reference to this Backbone object.
Expand Down Expand Up @@ -753,7 +753,7 @@
start : function() {
if (historyStarted) throw new Error("Backbone.history has already been started");
var docMode = document.documentMode;
var oldIE = ($.browser.msie && (!docMode || docMode <= 7));
var oldIE = (navigator.userAgent.toLowerCase().match(/msie [\w.]+/) && (!docMode || docMode <= 7));
if (oldIE) {
this.iframe = $('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo('body')[0].contentWindow;
}
Expand Down

0 comments on commit 5f3135f

Please sign in to comment.