diff --git a/src/Angular.js b/src/Angular.js index 90edb364d..8c4dc8bdc 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -155,8 +155,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 8638a3c2a..a917fb9c7 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 ec58b9cc4..238b009bf 100644 --- a/src/ng/parse.js +++ b/src/ng/parse.js @@ -762,7 +762,7 @@ Parser.prototype = { ensureSafeObject(context, parser.text); ensureSafeFunction(fnPtr, parser.text); - // IE stupidity! (IE doesn't have apply for some native functions) + // IE doesn't have apply for some native functions var v = fnPtr.apply ? fnPtr.apply(context, args) : fnPtr(args[0], args[1], args[2], args[3], args[4]);