Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
feat(tooltip): expose final options var
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed Jan 20, 2014
1 parent d0ad91c commit 4e2dda1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tooltip/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ angular.module('mgcrea.ngStrap.tooltip', ['mgcrea.ngStrap.helpers.dimensions'])
var $tooltip = {};

// Common vars
var options = angular.extend({}, defaults, config);
var options = $tooltip.$options = angular.extend({}, defaults, config);
$tooltip.$promise = $q.when($templateCache.get(options.template) || $http.get(options.template/*, {cache: true}*/));
var scope = $tooltip.$scope = options.scope && options.scope.$new() || $rootScope.$new();
if(options.delay && angular.isString(options.delay)) {
Expand Down

0 comments on commit 4e2dda1

Please sign in to comment.