angular.js/test/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
..
aSpec.js fix(a): workaround IE bug affecting mailto urls 2013-02-14 16:42:58 -08:00
booleanAttrsSpec.js feat(minerr): log minerr doc url in development 2013-08-15 13:23:18 -07:00
formSpec.js fix(*): protect calls to hasOwnProperty in public API 2013-10-07 09:01:13 -07:00
inputSpec.js feat(minerr): log minerr doc url in development 2013-08-15 13:23:18 -07:00
ngBindSpec.js fix(ng-bind-html): watch string value instead of wrapper 2013-09-20 16:30:20 -07:00
ngClassSpec.js fix(ngAnimate): ensure that ngClass is always compiled before enter, leave and move animations 2013-09-03 17:06:49 -07:00
ngClickSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngCloakSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngControllerSpec.js feat(controller): support as instance syntax 2013-04-22 23:28:41 -07:00
ngCspSpec.js feat($parse): CSP compatibility 2012-04-27 23:04:24 -07:00
ngEventDirsSpec.js fix(ngSubmit): expose $event to ngSubmit callback 2013-07-11 17:24:30 -07:00
ngIfSpec.js chore(ngMock): rename $animate.process to $animate.flushNext() 2013-08-02 23:52:37 -07:00
ngIncludeSpec.js fix(ngInclude): don't break attribute bindings on ngInclude-ed element 2013-09-20 14:11:12 -07:00
ngInitSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngKeySpec.js feat(directive): ng:focus, ng:blur 2013-07-18 19:24:42 +02:00
ngNonBindableSpec.js test(ng-non-bindable): test sibling bindings 2013-09-20 23:55:23 -07:00
ngPluralizeSpec.js feat(ngPluralize): add alternative mapping using attributes 2013-07-14 16:36:15 +02:00
ngRepeatSpec.js fix(*): protect calls to hasOwnProperty in public API 2013-10-07 09:01:13 -07:00
ngShowHideSpec.js chore(ngMock): rename $animate.process to $animate.flushNext() 2013-08-02 23:52:37 -07:00
ngSrcsetSpec.js feat(ngSrcset): add new ngSrcset directive 2013-05-14 21:29:21 +01:00
ngSrcSpec.js feat(minerr): log minerr doc url in development 2013-08-15 13:23:18 -07:00
ngStyleSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngSwitchSpec.js chore(ngMock): rename $animate.process to $animate.flushNext() 2013-08-02 23:52:37 -07:00
scriptSpec.js fix(script): Incorrectly reading script text on ie 2012-04-20 11:29:34 -07:00
selectSpec.js fix(*): protect calls to hasOwnProperty in public API 2013-10-07 09:01:13 -07:00
styleSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00