diff options
Diffstat (limited to 'src/widgets.js')
| -rw-r--r-- | src/widgets.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/widgets.js b/src/widgets.js index 6d64730f..a32abb75 100644 --- a/src/widgets.js +++ b/src/widgets.js @@ -68,7 +68,6 @@ var ngIncludeDirective = ['$http', '$templateCache', '$anchorScroll', '$compile' compile: function(element, attr) { var srcExp = attr.src, scopeExp = attr.scope || '', - onloadExp = attr.onload || '', //workaround for jquery bug #7537 autoScrollExp = attr.autoscroll; if (!element[0]['ng:compiled']) { element[0]['ng:compiled'] = true; @@ -106,7 +105,7 @@ var ngIncludeDirective = ['$http', '$templateCache', '$anchorScroll', '$compile' if (isDefined(autoScrollExp) && (!autoScrollExp || scope.$eval(autoScrollExp))) { $anchorScroll(); } - scope.$eval(onloadExp); + scope.$emit('$contentLoaded'); } }).error(clearContent); } else { |
