diff --git a/src/Angular.js b/src/Angular.js index 2261c8a2dd24..fc0b378369eb 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -162,8 +162,8 @@ if ('i' !== 'I'.toLowerCase()) { } -var /** holds major version number for IE or NaN for real browsers */ - msie, +var + msie, // holds major version number for IE, or NaN if UA is not IE. jqLite, // delay binding since jQuery could be loaded after us. jQuery, // delay binding slice = [].slice, diff --git a/src/ng/directive/script.js b/src/ng/directive/script.js index 8638a3c2a58f..a917fb9c77b5 100644 --- a/src/ng/directive/script.js +++ b/src/ng/directive/script.js @@ -40,7 +40,6 @@ var scriptDirective = ['$templateCache', function($templateCache) { compile: function(element, attr) { if (attr.type == 'text/ng-template') { var templateUrl = attr.id, - // IE is not consistent, in scripts we have to read .text but in other nodes we have to read .textContent text = element[0].text; $templateCache.put(templateUrl, text); diff --git a/src/ng/parse.js b/src/ng/parse.js index ec4cf68a54b5..b13bc4d5769f 100644 --- a/src/ng/parse.js +++ b/src/ng/parse.js @@ -722,7 +722,6 @@ Parser.prototype = { ensureSafeObject(context, expressionText); ensureSafeFunction(fn, expressionText); - // IE stupidity! (IE doesn't have apply for some native functions) var v = fn.apply ? fn.apply(context, args) : fn(args[0], args[1], args[2], args[3], args[4]);