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

Commit c7ea4a7

Browse files
fix(minify): tabsDirective template function works when minified
1 parent 0ef4b79 commit c7ea4a7

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

src/components/chips/js/chipsDirective.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// name with '$', Angular won't write it into the DOM. The cloned
149149
// element propagates to the link function via the attrs argument,
150150
// where various contained-elements can be consumed.
151-
attrs['$mdUserTemplate'] = element.clone();
151+
var content = attrs['$mdUserTemplate'] = element.clone();
152152
return MD_CHIPS_TEMPLATE;
153153
},
154154
require: ['mdChips'],

src/components/list/list.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ddescribe('mdListItem directive', function() {
1+
describe('mdListItem directive', function() {
22
beforeEach(module('material.components.list', 'material.components.checkbox', 'material.components.switch'));
33

44
function setup(html) {

src/components/tabs/js/tabsController.js

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ angular
22
.module('material.components.tabs')
33
.controller('MdTabsController', MdTabsController);
44

5+
/**
6+
* @ngInject
7+
*/
58
function MdTabsController ($scope, $element, $window, $timeout, $mdConstant, $mdInkRipple,
69
$mdUtil, $animate) {
710
var ctrl = this,

src/components/tabs/js/tabsDirective.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function MdTabs ($mdTheming, $mdUtil, $compile) {
9595
stretchTabs: '@?mdStretchTabs'
9696
},
9797
template: function (element, attr) {
98-
attr.$mdTabsTemplate = element.html();
98+
var content = attr["$mdTabsTemplate"] = element.html();
9999
return '\
100100
<md-tabs-wrapper ng-class="{ \'md-stretch-tabs\': $mdTabsCtrl.shouldStretchTabs() }">\
101101
<md-tab-data></md-tab-data>\

0 commit comments

Comments
 (0)