angular.js/src/ng/directive
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
..
a.js docs(a): change model.$save() into something less deceptive 2013-10-05 21:56:37 +01:00
booleanAttrs.js docs(ngDisabled): clarify 2013-09-27 13:01:35 -07:00
directives.js chore(*): remove dead code and fix code style issues 2012-04-10 16:52:12 -07:00
form.js fix(*): protect calls to hasOwnProperty in public API 2013-10-07 09:01:13 -07:00
input.js docs(ngModel): fix grammar and improve clarity 2013-10-07 14:37:28 +01:00
ngBind.js fix(ng-bind-html): watch string value instead of wrapper 2013-09-20 16:30:20 -07:00
ngClass.js docs(ngClass): clarify the description 2013-10-03 21:29:59 +01:00
ngCloak.js docs(ngCloak): fix grammar, clarity 2013-09-20 20:45:19 +01:00
ngController.js docs(ngController): fix grammar 2013-09-27 13:20:40 -07:00
ngCsp.js docs(ngCsp): fix grammar 2013-09-27 13:13:34 -07:00
ngEventDirs.js docs(dblClick): fix grammar 2013-09-27 13:04:42 -07:00
ngIf.js docs(ngIf): formatting, clarity 2013-09-27 15:49:05 -07:00
ngInclude.js docs(ngInclude): clarity, formatting 2013-10-03 21:44:16 +01:00
ngInit.js docs(ng.directives): add correct @restrict for all ng directives 2013-09-11 13:28:17 +01:00
ngNonBindable.js docs(ng.directives): add correct @restrict for all ng directives 2013-09-11 13:28:17 +01:00
ngPluralize.js feat(ngPluralize): add alternative mapping using attributes 2013-07-14 16:36:15 +02:00
ngRepeat.js fix(*): protect calls to hasOwnProperty in public API 2013-10-07 09:01:13 -07:00
ngShowHide.js docs(ngShowHide): improve clarity 2013-09-25 22:16:11 +01:00
ngStyle.js docs(ng.directives): add correct @restrict for all ng directives 2013-09-11 13:28:17 +01:00
ngSwitch.js docs(ngSwitch): fix minor typo 2013-09-13 21:56:53 +01:00
ngTransclude.js fix(ngTransclude): detect ngTranslude usage without a transclusion directive 2013-09-30 16:44:19 -07:00
script.js docs(ng.directives): add correct @restrict for all ng directives 2013-09-11 13:28:17 +01:00
select.js fix(*): protect calls to hasOwnProperty in public API 2013-10-07 09:01:13 -07:00
style.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00