Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(minify): tabsDirective template function works when minified
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBurleson committed May 20, 2015
1 parent 0ef4b79 commit c7ea4a7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/chips/js/chipsDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
// name with '$', Angular won't write it into the DOM. The cloned
// element propagates to the link function via the attrs argument,
// where various contained-elements can be consumed.
attrs['$mdUserTemplate'] = element.clone();
var content = attrs['$mdUserTemplate'] = element.clone();
return MD_CHIPS_TEMPLATE;
},
require: ['mdChips'],
Expand Down
2 changes: 1 addition & 1 deletion src/components/list/list.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ddescribe('mdListItem directive', function() {
describe('mdListItem directive', function() {
beforeEach(module('material.components.list', 'material.components.checkbox', 'material.components.switch'));

function setup(html) {
Expand Down
3 changes: 3 additions & 0 deletions src/components/tabs/js/tabsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ angular
.module('material.components.tabs')
.controller('MdTabsController', MdTabsController);

/**
* @ngInject
*/
function MdTabsController ($scope, $element, $window, $timeout, $mdConstant, $mdInkRipple,
$mdUtil, $animate) {
var ctrl = this,
Expand Down
2 changes: 1 addition & 1 deletion src/components/tabs/js/tabsDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function MdTabs ($mdTheming, $mdUtil, $compile) {
stretchTabs: '@?mdStretchTabs'
},
template: function (element, attr) {
attr.$mdTabsTemplate = element.html();
var content = attr["$mdTabsTemplate"] = element.html();
return '\
<md-tabs-wrapper ng-class="{ \'md-stretch-tabs\': $mdTabsCtrl.shouldStretchTabs() }">\
<md-tab-data></md-tab-data>\
Expand Down

0 comments on commit c7ea4a7

Please sign in to comment.