aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2010-10-12Fixed issue where compiler would pass in detached text node if previous ↵Misko Hevery
markup would have removed it.
2010-10-12Introduced injector and $new to scope, and injection into link methods and ↵Misko Hevery
controllers - added angular.injector(scope, services, instanceCache) which returns inject - inject method can return, instance, or call function which have $inject property - initialize services with $creation=[eager|eager-publish] this means that only some of the services are now globally accessible - upgraded $become on scope to use injector hence respect the $inject property for injection - $become should not be run multiple times and will most likely be removed in future version - added $new on scope to create a child scope - $inject is respected on constructor function - simplified scopes so that they no longer have separate __proto__ for parent, api, behavior and instance this should speed up execution since scope will now create one __proto__ chain per scope (not three). BACKWARD COMPATIBILITY WARNING: - services now need to have $inject instead of inject property for proper injection this breaks backward compatibility - not all services are now published into root scope (only: $location, $cookie, $window) - if you have widget/directive which uses services on scope (such as this.$xhr), you will now have to inject that service in (as it is not published on the root scope anymore)
2010-10-12fixing missing semicolonIgor Minar
2010-10-13fix global namespace polution with invalidWidgetsIgor Minar
2010-10-13fix memory leak caused by leftbehind $invalidWidgets referencesIgor Minar
- ng:switch should not clean up $invalidWidgets - $invalidWidgets should be clean up after each eval - add missing docs
2010-10-13temparary backaward compatibility patch for Controller.initIgor Minar
- feedback relies on *Controller.init to be called when a Controller is being created. this with previous angular refactoring this is not happening in angular any more. To make it easier for feedback to transition, this change makes $become call controller's init method if present. - call to Controller.init from $route.updateRoute was removed. this was left there by accident during the previous refactoring.
2010-10-08Fix bug with Lexer not recognizing exponential values and values starting ↵Shyam Seshadri
with dots
2010-10-08fixed leaking constants to gloabal scopeMisko Hevery
2010-10-08change ng:controller to create new scope hence allow nestingMisko Hevery
2010-10-06removing anchor spec and improving jqLite.trigger() methodIgor Minar
- removing the last anchor spec because it can't run reliably in all browsers - improving jqLite.trigger() method
2010-10-05Fix bug in IE where clone removes whitespace nodes.Elliott Sprehn
2010-10-04fixed lint warningsIgor Minar
2010-10-01'A' tag widget and ng:click propagation changeIgor Minar
* added a widget for A (anchor) tag, that modifies the default behavior and prevent default action (location change and page reload) for tags with empty href attribute * stopped event propagation for all ng:click handlers
2010-10-01properly handle event's stopPropagation() and preventDefault() method in IEIgor Minar
2010-09-29Differentiate between flags and empty keys in $location.hashSearchIgor Minar
* #foo?key=var&flag&emptyKey= should parse into {key:'val', flag: true, emptyKey: ''} * added docs and spec for parseKeyValue function
2010-09-27Reworked the cookie synchronization between cookie service, $browser and ↵Igor Minar
document.cookie. Now we finally correctly handle situations when browser refuses to set a cookie, due to storage quota or other (file:// protocol) limitations.
2010-09-26Properly initialize cookie service in order to preserve existing cookiesIgor Minar
- previously the poller initialized the cookie cache too late which was causing previously existing cookies to be deleted by cookie service - refactored the poller api so that the addPollFn returns the added fn - fixed older cookie service tests - removed "this.$onEval(PRIORITY_LAST, update);" because it is not needed
2010-09-26Added support for functions to $orderBy methodMisko Hevery
http://github.com/angular/angular.js/issues#issue/23
2010-09-23cleanup underscore.js form rakefileMisko Hevery
2010-09-23make date validator use the Date objectBolek Szewczyk
2010-09-23fix parseInt by adding radix so that it does not default to octal if the ↵Misko Hevery
string starts with 0
2010-09-23$cookies service refactoringIgor Minar
- remove obsolete code in tests - add warning logs when maximum cookie limits (as specified via RFC 2965) were reached - non-string values will now get dropped - after each update $cookies hash will reflect the actual state of browser cookies this means that if browser drops some cookies due to cookie overflow, $cookies will reflect that - $sessionStore got renamed to $cookieStore to avoid name conflicts with html5's sessionStore
2010-09-23Rewrite session store service in object literal style and remove getAll ↵Igor Minar
method that is not used anywhere
2010-09-23Add JSDoc for the copy() methodIgor Minar
2010-09-22Refactored the Browser:Misko Hevery
- change from using prototype to inner functions to help with better compression - removed watchers (url/cookie) and introduced a poller concept - moved the checking of URL and cookie into services which register with poolers Benefits: - Smaller minified file - can call $browser.poll() from tests to simulate polling - single place where setTimeout needs to be tested - More testable $browser
2010-09-22Reduce copies done by Resource.Alkis Evlogimenos
When a method foo is called on a Resource object, say myResource there are two copies that happen to the resource: - one inside Resource.foo() in some dummy function - another inside myResource.$foo() inside the callback passed to foo()
2010-09-21HEAD is now at 10c0151 Fixes on issue when a SELECT has OPTION which are ↵Misko Hevery
data bound (ie OPTION has repeater or OPTION.value is bound), then SELECT does not update to match the correct OPTION after the change in model (ie after the OPTION repeater unrolls or OPTION.value is changed.)
2010-09-21toJson should serialize inherited properties, but not any properties that ↵Igor Minar
start with $
2010-09-20Add ng:src and ng:href markup.Alkis Evlogimenos
2010-09-16Expose GET operations on resources as well. This allows us to readAlkis Evlogimenos
"partials". The pattern is demostrated in the unittest: Resource.query returns a list of "keys" to resources, which are partially defined. They have enough data to allow $get to fetch the whole gamout. Then $get fetches all the details of the resource.
2010-09-16Allow angular to be included with query parameters. This is a commonAlkis Evlogimenos
pattern for forcing a reload of the script in the browser irrespective of the cache settings the host has.
2010-09-16Delete requests on resources pass this as data. Delete requests should not ↵Misko Hevery
be passing data in the body of the response. The bug is here: http://github.com/angular/angular.js/blob/master/src/Resource.js#L119 Instead of checking for !isGet you should be checking for !isPost. Also isPost should be isPostOrPut since only on those two methods should be sending a payload if I am not mistaken.
2010-09-16removed unneeded commentMisko Hevery
2010-09-14mergeMisko Hevery
2010-09-14Fixed all trivial jslint violationsMisko Hevery
2010-09-14Adding cookie serviceMisko Hevery
- Browser.cookies() - MockBrowser - $cookie service - $sessionStore
2010-09-06removed accidental assignment of $element to glabal spaceMisko Hevery
2010-08-18remove Parser staticMisko Hevery
2010-08-18converted lexer from function to closureMisko Hevery
2010-08-18move static field from Lexer to hidden namespaceMisko Hevery
2010-08-18stringify names for better compression, remove dead functions, removed ↵Misko Hevery
underscore.js compatibility
2010-08-18added better handling of ng:format=numberMisko Hevery
2010-08-16fix for ng:include does not remove partial if src goes to undefinedIgor Minar
2010-08-16Merge remote branch 'upstream/master'Igor Minar
2010-08-16removing useless catch that causes troubles when FF throws exceptions within ↵iminar
the loop but outside of the try/catch clause
2010-08-14Merge remote branch 'igor/master'Misko Hevery
2010-08-14pull shyamMisko Hevery
2010-08-13Fix issue with jquery not being visible in productionShyam Seshadri
2010-08-13Serialize only own properties to avoid infinite loops when serializing ↵Igor Minar
scopes (this)
2010-08-14Provide all jquery functions as futuresShyam Seshadri