angular.js/docs/content
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
..
api docs(module): improve the installation instructions for optional modules 2013-08-22 16:55:54 -07:00
cookbook docs(cookbook/helloworld): display "World" if no name is entered 2013-06-20 14:39:16 +01:00
error fix(*): protect calls to hasOwnProperty in public API 2013-10-07 09:01:13 -07:00
guide docs(guide/directive): clarify use of binding to scopes 2013-10-03 23:44:42 +01:00
misc docs(FAQ): update jQuery compatibility 2013-09-19 14:11:37 +01:00
notes feat(ngdocs): support popover, foldouts and foldover annotations 2013-06-17 22:00:54 -07:00
tutorial docs(tutorial/step02): fix missing brace 2013-10-06 22:26:33 +01:00