angular.js/src/ng
Peter Bacon Darwin 7a586e5c19 fix(*): protect calls to hasOwnProperty in public API
Objects received from outside AngularJS may have had their `hasOwnProperty`
method overridden with something else. In cases where we can do this without
incurring a performance penalty we call directly on Object.prototype.hasOwnProperty
to ensure that we use the correct method.

Also, we have some internal hash objects, where the keys for the map are provided
from outside AngularJS. In such cases we either prevent `hasOwnProperty` from
being used as a key or provide some other way of preventing our objects from
having their `hasOwnProperty` overridden.

BREAKING CHANGE: Inputs with name equal to "hasOwnProperty" are not allowed inside
form or ngForm directives.

Before, inputs whose name was "hasOwnProperty" were quietly ignored and not added
to the scope.  Now a badname exception is thrown.

Using "hasOwnProperty" for an input name would be very unusual and bad practice.
Either do not include such an input in a `form` or `ngForm` directive or change
the name of the input.

Closes #3331
2013-10-07 09:01:13 -07:00
..
directive fix(*): protect calls to hasOwnProperty in public API 2013-10-07 09:01:13 -07:00
filter docs(filter): add missing semi-colon 2013-10-05 21:44:14 +01:00
anchorScroll.js docs($anchorScroll): provide an example of basic usage. 2013-09-05 08:32:52 +01:00
animate.js fix(jqLite): use get/setAttribute so that jqLite works on SVG nodes 2013-09-27 12:38:27 -07:00
browser.js fix($location): prevent infinite digest error in IE7 2013-10-02 15:33:31 -07:00
cacheFactory.js docs(*): fixed typos and ngdoc parameter names 2013-07-27 20:53:41 +02:00
compile.js fix(*): protect calls to hasOwnProperty in public API 2013-10-07 09:01:13 -07:00
controller.js fix(*): protect calls to hasOwnProperty in public API 2013-10-07 09:01:13 -07:00
document.js docs(*): simplify doc urls 2012-06-12 00:10:18 -07:00
exceptionHandler.js docs($exceptionHandler): add an example of overriding the handler 2013-09-19 14:51:38 +01:00
filter.js feat(filter): allow map of filters to be registered 2013-10-01 10:26:36 +01:00
http.js docs($http): update grammar in comments 2013-09-30 21:44:35 +01:00
httpBackend.js fix($httpBackend): set headers with falsy values 2013-10-01 14:02:00 -07:00
interpolate.js docs($interpolate): fix example for provider w/ custom symbols 2013-08-15 08:27:41 -07:00
locale.js docs(*): simplify doc urls 2012-06-12 00:10:18 -07:00
location.js docs(): parameter for html5Mode is boolean 2013-09-05 10:01:50 +01:00
log.js fix(log): prevent logging undefined for $log in IE 2013-09-27 16:44:21 -07:00
parse.js fix(*): protect calls to hasOwnProperty in public API 2013-10-07 09:01:13 -07:00
q.js docs($q): clarify what happens when rejected 2013-09-10 22:06:04 +01:00
rootElement.js docs(*): simplify doc urls 2012-06-12 00:10:18 -07:00
rootScope.js fix(rootScope): make stopPropagation only stop its own event 2013-10-05 22:45:43 +01:00
sce.js docs($sce): fix punctuation 2013-10-03 23:20:58 +01:00
sniffer.js fix($sniffer): history problems on Boxee box 2013-08-23 11:57:55 -07:00
timeout.js docs($timeout): add a $timeout example 2013-09-28 15:24:35 +01:00
urlUtils.js fix(core): parse IE11 UA string correctly 2013-08-29 16:07:49 -07:00
window.js docs($window): improve style and clarify wording 2013-07-21 20:24:33 +02:00