aboutsummaryrefslogtreecommitdiffstats
path: root/src/Angular.js
AgeCommit message (Collapse)Author
2013-05-23fix(jqLite): correctly monkey-patch core jQuery methodsMichał Gołębiowski
When real jQuery is present, Angular monkey patch it to fire `$destroy` event. This commit fixes two issues in the jQuery patch: - passing a selector to the $.fn.remove method (only fire `$destroy` on the matched elements) - using `$.fn.html` without parameters as a getter (do not fire `$destroy`)
2013-05-21docs(Angular.js): add missing @returns to extend()Joakim Blomskøld
2013-05-09docs(Angular.js) move forEach docs to correct placeAlex Pods
2013-05-08fix(angular): do not copy $$hashKey in copy/extend functions.R. Merkert
Copying the $$hashKey as part of copy/extend operations makes little sense since hashkey is used primarily as an object id, especially in the context of the ngRepeat directive. This change maintains the existing $$hashKey of an object that is being copied into (likewise for extend). It is not uncommon to take an item in a collection, copy it, and then append it to the collection. By copying the $$hashKey, this leads to duplicate object errors with the current ngRepeat. Closes #1875
2013-04-22fix($animator): remove dependency on window.setTimeout.Misko Hevery
2013-04-15docs(Angular.js): fix typoLaurent
2013-04-11docs: fix typosMatt Haggard
2013-04-11docs(ngApp): fixed typoBrent Morrow
Use this directive to auto-bootstrap **an** application.
2013-04-02feat(ngAnimate): add support for animationMisko Hevery
2013-03-29docs(*): fixed typosPascal Borreli
2013-03-19chore(Angular): remove superfluous fromCharCode functionJavier Mendiara Cañardo
Remove fromCharCode function as it was used only in two inner functions in the code, and its functionality is achieved in several other places by using String.fromCharCode Breaks fromCharCode closure function, String.fromCharCode should be used instead
2013-03-06feat(angular.bootstrap): support deferred bootstrapJulie
This features enables tools like Batarang and test runners to hook into angular's bootstrap process and sneak in more modules into the DI registry which can replace or augment DI services for the purpose of instrumentation or mocking out heavy dependencies. If window.name contains prefix NG_DEFER_BOOTSTRAP! when angular.bootstrap is called, the bootstrap process will be paused until angular.resumeBootstrap is called. angular.resumeBootstrap takes an optional array of modules that should be added to the original list of modules that the app was about to be bootstrapped with.
2013-02-26fix($http): don't encode URL query substring "null" to "+"Andrew McLeod
Fixes issue in encodeUriQuery used by $http and $resource that treats null as a string and replaces the characters "null" with "+".
2013-02-14feat(noConflict): restore previous angular namespace referenceJames Morrin
2013-02-14fix(compiler): Allow startingTag method to handle text / comment nodesShyam Seshadri
2013-02-11revert: refactor(angular.copy): use slice(0) to clone arraysIgor Minar
This reverts commit 28273b7f1ef52e46d5bc23c41bc7a1492cf23014o. slice(0) doesn't perform deep copy of the array so its unsuitable for our purposes.
2013-02-11refactor(angular.copy): use array.length=0 to empty arraysIgor Minar
2013-02-11refactor(angular.copy): use slice(0) to clone arraysIgor Minar
slice(0) is way faster on most browsers
2013-02-11fix(angular.forEach): correctly iterate over objects with length propIgor Minar
Should handle JQLite, jQuery, NodeList and other objects like arrays but not other generic objects or instances of user defined types with length property. Closes #1840
2013-02-05docs(ngApp): fix typoradu
2013-01-29docs(nextUid): fix typoradu
Update src/Angular.js removed redundant 'the' from nextUid()'s ngdoc
2013-01-29refactor(Angular.js): prevent Error variable name leak in testsmetaweta
Remove var Error = window.Error window.Error is a read-only property in Apps Script. Igor says, "we should just delete that line instead. I think it was misko's attempt to get better closure minification, but it turns out that it's actually hurting us after gzip (I verified it)."
2013-01-22fix(angular.equals): relax the comparison for undefined propertiesIgor Minar
in 5ae63fd3 the comparison was made consistent but strict, so that angular.equals({}, {foo: undefined}) // always returns false this turns out to cause issues for data that is being roundtripped via network and serialized via JSON because JSON.stringify serializes {foo: undefined} as {}. Since angular.equals() behaved like this before the 5ae63fd3 in 50% of the cases, changing the behavior in this way should not introduce any significant issues. Closes #1648
2013-01-17fix(angular.equals): consistently compare undefined object propsIgor Minar
previously: a = {}; b = {x:undefined}; angular.equals(a, b) == angular.equals(b, a) // returns false. both should return false because these objects are not equal. unlike in implemented in #1695 the comparison should be stricter and return false not true. if we need to relax this in the future we can always do so. Closes #1648
2012-11-21docs(): Fix a couple of typos in the documentationKris Jenkins
2012-11-11docs(encodeUriSegment): fix typoJosh Adams
2012-06-12docs(*): simplify doc urlsIgor Minar
we now have two types of namespaces: - true namespace: angular.* - used for all global apis - virtual namespace: ng.*, ngMock.*, ... - used for all DI modules the virual namespaces have services under the second namespace level (e.g. ng.) and filters and directives prefixed with filter: and directive: respectively (e.g. ng.filter:orderBy, ng.directive:ngRepeat) this simplifies urls and makes them a lot shorter while still avoiding name collisions
2012-06-08fix(startingTag): make tag name always lowercaseIgor Minar
some browsers (IE) always provide the nodeName as upper-case
2012-06-02docs(bootstrap): rewritten bootstrap guideMisko Hevery
2012-06-02feat($rootElement): added application root elementMisko Hevery
Publish the application root element as $rootElement so that it can be injected to other services.
2012-04-20fix(document): accidental clobbering of document.getAttributeMisko Hevery
Closes #877
2012-04-10chore(*): remove dead code and fix code style issuesIgor Minar
2012-04-10docs(angular.bootstrap): fix typos and errorsIgor Minar
2012-04-09fix(docs): change all directive references to use the normalized namesIgor Minar
2012-03-29refactor($compile): move methods of attr object into prototypeVojta Jina
We have many instances of this object and we clone them as well (e.g. ng-repeat). This should save some memory and performance as well. Double prefixed private properties of attr object: attr.$element -> attr.$$element attr.$observers -> attr.$$observers Update shallowCopy to not copy $$ properties and allow passing optional destination object.
2012-03-28refactor(fromJson/toJson): move the contents of these files into Angular.jsIgor Minar
these files are now mostly empty so it doesn't make sense to keep them separated from other helper functions
2012-03-26feat(assertArgFn): should support array annotated fnsIgor Minar
2012-03-22fix(forEach): should ignore prototypically inherited propertiesIgor Minar
Closes #813
2012-03-19chore(parseInt): cleanup parseInt() for our int()Misko Hevery
2012-03-19fix(json): added support for iso8061 timezoneMisko Hevery
Added support of timezone in dates not just zulu timezone. This fixes issues for date filter which uses json deserialization under the hood. (for now) Closes #/800
2012-03-19fix(compiler): allow transclusion of root elementsMisko Hevery
Fixed an issue where a directive that uses transclusion (such as ngRepeat) failed to link if it was declared on the root element of the compilation tree. (For example ngView or ngInclude including template where ngRepeat was the top most element).
2012-03-19feat(jqLite): add .controller() methodMisko Hevery
extend JQuery with .controller() method which retrieves the closest controller for a given element
2012-03-13fix(indexOf): use native impl if availableIgor Minar
2012-03-11doc(fixes): to better support ng-directive notationMisko Hevery
2012-03-09fix(startTag): fix tagname extractionIgor Minar
the original code magically worked for ng:foo but for nothing else
2012-03-09chore(shiv): remove obsolete shiv codeIgor Minar
we can't provide this functionality because the directives are lazy loaded when the module loads, which is too late for the shiv to do anything useful.
2012-03-09chore(*): refactor all ng: to ng-Igor Minar
2012-03-08refactor(fromJson): Remove error() and just throwVojta Jina
It's more likely you are using angular.fromJson() inside Angular world, which means you get proper exception handling by $exceptionHandler. There is no point to explicitly push it to console and it causes memory leaks on most browsers (tried Chrome stable/canary, Safari, FF).
2012-02-28refactor(forms): Even better formsVojta Jina
- remove $formFactory completely - remove parallel scope hierarchy (forms, widgets) - use new compiler features (widgets, forms are controllers) - any directive can add formatter/parser (validators, convertors) Breaks no custom input types Breaks removed integer input type Breaks remove list input type (ng-list directive instead) Breaks inputs bind only blur event by default (added ng:bind-change directive)
2012-02-25fix($http): Do not serialize File objectVojta Jina