angular.js/docs/content/error
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
..
animate fix(ngAnimate): remove compound JS selector animations 2013-08-03 00:46:17 -07:00
cacheFactory docs(error): improve the cacheFactory/iid.ngdoc 2013-07-30 17:29:35 -07:00
compile docs(minerr): fix broken style from long line in nonassign 2013-09-26 14:13:02 -07:00
controller docs(minErr): add controller/noscp docs 2013-08-08 12:13:34 -07:00
httpBackend docs(minerr): fill in error message descriptions 2013-08-07 21:36:59 -07:00
injector docs(minerr): add note about ngRoute in injector/modulerr 2013-09-30 11:34:49 -07:00
interpolate docs(minerr): fill in error message descriptions 2013-08-07 21:36:59 -07:00
jqLite docs(jqLite): update the minErr codes for on() and off() 2013-08-09 00:39:31 -07:00
location docs(minErr): add location/ipthprfx 2013-08-12 14:09:09 -07:00
ng fix(*): protect calls to hasOwnProperty in public API 2013-10-07 09:01:13 -07:00
ngModel docs(minerr): fill in error message descriptions 2013-08-07 21:36:59 -07:00
ngOptions docs(error): added description for ngOptions/iexp.ngdoc 2013-08-07 09:47:13 -07:00
ngPattern docs(error): updated description for ngPattern/noregexp.ngdoc 2013-08-07 09:50:38 -07:00
ngRepeat docs(minerr): Adds a description for ngRepeat.dupes 2013-08-07 09:22:21 -07:00
ngTransclude fix(ngTransclude): detect ngTranslude usage without a transclusion directive 2013-09-30 16:44:19 -07:00
parse fix($parse): disallow access to window and dom in expressions 2013-09-17 18:15:49 -07:00
resource fix(*): protect calls to hasOwnProperty in public API 2013-10-07 09:01:13 -07:00
rootScope docs(minErr): add rootScope/inprog docs 2013-08-08 12:04:34 -07:00
sanitize style(minerr): prefer component name as namespace 2013-08-09 14:12:04 -07:00
sce feat($sce): simpler patterns for $sceDelegateProviders white/blacklists 2013-10-01 00:41:07 -07:00
index.ngdoc docs(minErr): Build minErr doc site 2013-07-24 10:42:20 -07:00