aboutsummaryrefslogtreecommitdiffstats
path: root/src/Scope.js
AgeCommit message (Collapse)Author
2011-08-18doc(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-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-06-23fix:scope - reintroduce support for eager servicesDi Peng
8cad231 broke $eager services Problem is that the injector.eager function is not invoked when a new scope is created. Added a test to make sure service is eagerly instantiated. Closes #403
2011-06-08Refactor injector to have invoke method for speed reasonsMisko Hevery
2011-06-08Cleanup parser code to expose smaller APIMisko Hevery
2011-06-06yet another docs batchIgor Minar
2011-06-06api doc fixes from kenIgor Minar
2011-06-06Fix links in docsVojta Jina
2011-03-26remove _null and _undefinedIgor Minar
they have no significant effect on minified and gziped size. in fact they make things worse. file | before | after removal ---------------------------------------- concat | 325415 | 325297 min | 62070 | 62161 min + gzip | 25187 | 25176 The bottom line is that we are getting 0.05% decrease in size after gzip without all of the hassle of using underscores everywhere.
2011-02-16Small spelling and grammar fixes in documentation.Anthony Lieuallen
2011-02-03Added remainder of the cookbookMisko Hevery
2011-02-01changed the documentation @example to use <doc:example>Misko Hevery
2011-01-30fixing angular.Scope. docsIgor Minar
2011-01-25Scope should retrieve $log and $exceptionHandler via $serviceIgor Minar
- fix $log and $exceptionHandler retrieval - remove reference to non-existent `error` handler - update tests
2011-01-24improve angular.Scope.$eval docsIgor Minar
2011-01-10Rename angular.foreach to angular.forEach to make the api consistent.Igor Minar
camelcase is used for other angular functions and forEach is also used by EcmaScript standard. - rename the internal as well as the external function name - tweak the implementation of the function so that it doesn't clober it self when we extend the angular object with an object that has a forEach property equal to this forEach function Closes #85
2011-01-04rename scope.$inject to scope.$serviceIgor Minar
see changelog diff for more info
2010-12-08Remove RegExp parserMisko Hevery
- RegExp parser is rearly used, feature, and one should not have RegExps in views anyways, so we are removing it BACKWARD INCOMPATIBLE CHANGE!!!
2010-12-02Closes #170. Corrected the behavior of select when options are ng:repeatedMisko Hevery
- Delete $postEval method, as it was a hack
2010-11-24fixing docs for angular.scopeIgor Minar
2010-11-24docs for angular.scope. and angular.scope.Igor Minar
2010-11-18fix all closure compilation warnings due to invalid function typesIgor Minar
2010-11-18add @workInProgress tag and mark all @ngdocs as work in progressIgor Minar
2010-11-18most of the documentation for angular.scope and friendsIgor Minar
2010-11-18scope docs + lowercase doc fixIgor Minar
2010-11-16Changed error handling so that better stack traces are displayed in the ↵Misko Hevery
ng-errors
2010-11-11$watch should optionally skip listener execIgor Minar
- if initRun param is set to false, listener doesn't execute - the oldValue should equal newValue during the initial execution - added docs - added specs
2010-11-10added ng:switch-when-default; changed $watch to always fire on init. (may be ↵Misko Hevery
backward incompatible)
2010-10-31fix typo, and change a list to string for more efficient compression.Misko Hevery
2010-10-18JSON parser is now strict (ie, expressions are not allowed for security)Misko Hevery
Close #57
2010-10-15removed unneeded function rethrow from scope which was interfering with the ↵Misko Hevery
test rethrow function
2010-10-14use new Function instead of eval()Misko Hevery
Close #52
2010-10-14temporary backwards compatibility patch forIgor Minar
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-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-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-14Fixed all trivial jslint violationsMisko Hevery
2010-08-18stringify names for better compression, remove dead functions, removed ↵Misko Hevery
underscore.js compatibility
2010-08-13initial perf testingMisko Hevery
2010-08-11clean up for better obfuscationMisko Hevery
2010-08-10fix bug where $eval on undefined throws errorMisko Hevery
2010-07-26minor speed improvementsMisko Hevery
2010-07-26minor performance improvementsMisko Hevery
2010-07-20clean up error handling a bit.Misko Hevery
2010-07-15updated list of JavaScript keywordsMisko Hevery
2010-07-08added class as a constant keyword to generated codeMisko Hevery
2010-07-02changed the eval for ie to be able to return a functionMisko Hevery
2010-07-02fixed special keywords in chrome such as x.throw must be x["throw"].Misko Hevery
2010-06-02Revert "Revert "removed few key foreach and replaced thime with for loop for ↵Shyam Seshadri
performance."" This reverts commit a29c5e4c7fd5e708c28e70e974bf873621d5277c.
2010-06-02Revert "removed few key foreach and replaced thime with for loop for ↵Shyam Seshadri
performance." This reverts commit 6143b04384680d17f38c2d5894a9b9961ea33288.