aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src
diff options
context:
space:
mode:
authorMisko Hevery2011-12-14 02:55:31 +0100
committerMisko Hevery2012-01-25 11:53:59 -0800
commit4804c83b7db5770d5d02eea9eea4cc012b4aa524 (patch)
treebe5ae1743179704cc1638f186cddba8d6e3fa37d /docs/src
parente2b1d9e994e50bcd01d237302a3357bc7ebb6fa5 (diff)
downloadangular.js-4804c83b7db5770d5d02eea9eea4cc012b4aa524.tar.bz2
docs(compiler): update the compiler docs
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/ngdoc.js1
-rw-r--r--docs/src/templates/doc_widgets.js13
2 files changed, 12 insertions, 2 deletions
diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js
index 49c6607b..e39cb362 100644
--- a/docs/src/ngdoc.js
+++ b/docs/src/ngdoc.js
@@ -630,7 +630,6 @@ var KEYWORD_PRIORITY = {
'.angular.module': 8,
'.angular.mock': 9,
'.angular.module.ng.$filter': 7,
- '.angular.module.ng.$filter': 7,
'.angular.module.ng.$rootScope.Scope': 7,
'.angular.module.ng': 7,
'.angular.mock': 8,
diff --git a/docs/src/templates/doc_widgets.js b/docs/src/templates/doc_widgets.js
index bee59234..76ccac7f 100644
--- a/docs/src/templates/doc_widgets.js
+++ b/docs/src/templates/doc_widgets.js
@@ -27,7 +27,7 @@ angular.module('ngdocs.directives', [], function($compileProvider) {
return {
terminal: true,
compile: function(element, attrs) {
- var module = element.attr('module') || '';
+ var module = attrs.module;
//jQuery find() methods in this widget contain primitive selectors on purpose so that we can use
//jqlite instead. jqlite's find() method currently supports onlt getElementsByTagName!
@@ -86,6 +86,17 @@ angular.module('ngdocs.directives', [], function($compileProvider) {
function($provide) {
$provide.value('$browser', $browser);
$provide.value('$location', $location);
+ $provide.decorator('$defer', function($rootScope, $delegate) {
+ return angular.extend(function(fn, delay) {
+ if (delay && delay > 500) {
+ return setTimeout(function() {
+ $rootScope.$apply(fn);
+ }, delay);
+ } else {
+ return $delegate.apply(this, arguments);
+ }
+ }, $delegate);
+ });
}
];
module && modules.push(module);