aboutsummaryrefslogtreecommitdiffstats
path: root/src/Angular.js
AgeCommit message (Collapse)Author
2011-11-30fix(copy,equals): prevent browser crashes with Scope or WindowIgor Minar
Scope and Window instances are special and when copied can crash browser. For this reason it makes sense to compare them only by identity.
2011-11-21fix(scope): $watch (and angular.equals) should support NaN valuesCodier
- since NaN !== NaN in javascript digest can get into an infinite loop when model value is set to NaN - angular.equals(NaN, NaN) should return true since that's what we expect when comparing primitives or objects containing NaN values Previously NaN because of its special === properties was used as the initial value for watches, but that results in issues when NaN is used as model value. In order to allow for model to be anything incuding undefined and NaN we need to mark the initial value differently in a way that would avoid these issues, allow us to run digest without major perf penalties and allow for clients to determine if the listener is being called because the watcher is being initialized or because the model changed. This implementation covers all of these scenarios. BREAKING CHANGE: previously to detect if the listener was called because the watcher was being initialized, it was suggested that clients check if old value is NaN. With this change, the check should be if the newVal equals the oldVal. Closes #657
2011-11-14style(angularPublic): move public export definition to AnuglarPublic.jsMisko Hevery
2011-11-14doc(rename): NG_LOCALE -> ngLocaleMisko Hevery
2011-11-14refactor(injector): $injector is no longer a function.Misko Hevery
- $injector('abc') -> $injector.get('abc'); - $injector(fn) -> $injector.invoke(null, fn);
2011-11-14style(docs): make jslint happy - fix some warningsVojta Jina
2011-11-14feat(bootstrap): added angular.bootstrap methodMisko Hevery
2011-11-14fix(doc) cleanup all api doc link warningsMisko Hevery
2011-11-14refactor($location): merged $locationConfig service into $locationProviderMisko Hevery
2011-11-14chore(scenario tests): make scenario tests pass againMisko Hevery
2011-11-14new(directive): added ng:module directive for loading modulesMisko Hevery
2011-11-14refactor(scenario): fix scenario bootstrap & publish injector for inspectionMisko Hevery
2011-11-14chore(angular): clean up unused constantsMisko Hevery
2011-11-14refactor(angular): isDate / isArray test iframe independent fixMisko Hevery
2011-11-14fix(i18n): updated the way locale is being registeredMisko Hevery
2011-11-14refactor(mock): moved mocks into its own moduleMisko Hevery
2011-11-14refactor(api): remove type augmentationMisko Hevery
BREAK: - remove angular.[Object/Array/String/Function] - in templates [].$filter(predicate) and friends need to change to [] | filter:predicate
2011-11-14refactor(filter): filters are now injectable and servicesMisko Hevery
BREAK: - removed CSS support from filters
2011-11-14refactor(parser): turn parser into a service (keep compatibility hack)Misko Hevery
2011-11-14refactor(services): migrate angular.service -> moduleMisko Hevery
2011-11-14refactor(injector): switch to injector 2.0 introduce modulesMisko Hevery
2011-11-14new(injector): new injector v2.0Misko Hevery
- not connected to keep the CL small
2011-11-14refactor(api): cleaned up the externalization of angular API methodsMisko Hevery
2011-11-14refactor(compiler) turn compiler into a serviceMisko Hevery
BREAK - remove angular.compile() since the compile method is now a service and needs to be injected
2011-11-14refactor(injector): turn scope into a serviceMisko Hevery
- turn scope into a $rootScope service. - injector is now a starting point for creating angular application. - added inject() method which wraps jasmine its/beforeEach/afterEach, and which allows configuration and injection of services. - refactor tests to use inject() where possible BREAK: - removed angular.scope() method
2011-11-08fix(directives): make directive names case-insensitiveIgor Minar
+ tests + added docs for angular.directive
2011-10-26feat(bootstrap): drop angular.js file name restrictions for autobindIgor Minar
The last script element in the dom is always us if the script that contains angular is loaded synchronously. For async loading manual bootstrap needs to be performed. Close #621
2011-10-26style(Angular.js): various code style fixesIgor Minar
2011-10-24fix(angular.widget): Allow widgets to be styled in IE8 and belowDhruv Manek
Closes #584
2011-10-11chore(formating): clean code to be function() {Misko Hevery
2011-10-11feat(forms): new and improved formsMisko Hevery
2011-10-11refactor(bindings): remove the decoration of the DOM with errors.Misko Hevery
Only $exceptionHandler gets notified now.
2011-10-11feat(jqlite): added .inheritedData method and $destroy event.Misko Hevery
- refactored .scope() to use .inheritedData() instead. - .bind('$destroy', callback) will call when the DOM element is removed
2011-09-16fix(e2e tests): use prop() instead of attr() and quote attributesIgor Minar
Because of changes in jQuery, we need to use element().prop() instead of element().attr() to retrieve className and other element properties. Additionally all attribute selectors (e.g. input[name=value]) must have value quoted if it contains dots (".").
2011-09-08fix($location): Use encodeUriQuery instead of escapeKai Groner
Closes #492
2011-09-01docs(API): various api doc fixes from ToniIgor Minar
2011-08-31kill(merge): removing merge fn - dead buggy code with no specsIgor Minar
2011-08-24doc(API): various API documentation improvementsToni Thompson
2011-08-15refactor(jqLite): remove jqLite show/hide supportIgor Minar
it turns out that even with our tricks, jqLite#show is not usable in practice and definitely not on par with jQuery. so rather than introducing half-baked apis which introduce issues, I'm removing them. I also removed show/hide uses from docs, since they are not needed. Breaks jqLite.hide/jqLite.show which are no longer available.
2011-08-12refactor(scope): remove $flush/$observe ng:eval/ng:eval-orderMisko Hevery
2011-08-06style($function): replace $function with 'function'Igor Minar
2011-08-02refactor(angular): remove unnecessary parameter for slice functionDiPeng
- the end index for slice, if not specified, is default to the end of the array it operates on.
2011-08-02feat(scope): new and improved scope implementationMisko Hevery
- Speed improvements (about 4x on flush phase) - Memory improvements (uses no function closures) - Break $eval into $apply, $dispatch, $flush - Introduced $watch and $observe Breaks angular.equals() use === instead of == Breaks angular.scope() does not take parent as first argument Breaks scope.$watch() takes scope as first argument Breaks scope.$set(), scope.$get are removed Breaks scope.$config is removed Breaks $route.onChange callback has not "this" bounded
2011-07-30doc(typos): fix couple of typos in the docsdandoyon
Minor documentation fixes. Should not be any code changes. One test changed due to dependency on text in documentation.
2011-07-27style(): fix couple of missing semi-colonsVojta Jina
2011-07-26fix(ng:show/ng:hide): use jqLite.show/jqLite.hideDi Peng
The previous implementation didn't handle situation when in css something was hidden with a cascaded display:none rule and then we wanted to show it. Unfortunatelly our test doesn't test this scenario because it's too complicated. :-/
2011-07-22feat(angular.version): add angular.versionDi Peng
- placeholders are replaced with actual angular versions when doing rake compile
2011-07-18feat(strict mode): adding strict mode flag to all js filesIgor Minar
the flag must be in all src and test files so that we get the benefit of running in the strict mode even in jstd the following script was used to modify all files: for file in `find src test -name "*.js"`; do echo -e "'use strict';\n" > temp.txt cat $file >> temp.txt mv temp.txt $file done
2011-07-18fix(strict mode): fix all issues discovered by strict mode and unit/e2e testsIgor Minar
2011-07-13fix(bootstrap): Fix bootstrap on IE<8Vojta Jina
No reason for including ie-compat in bootstrap, it's included during angularInit. Fix including ie-compat even for production.