Skip to content

Commit 11bb83b

Browse files
committed
fix for 720kb#125
1 parent 4c21779 commit 11bb83b

File tree

4 files changed

+36
-124
lines changed

4 files changed

+36
-124
lines changed

dist/angular-tooltips.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@
234234
, tipArrowElement = angular.element(window.document.createElement('tip-arrow'))
235235
, whenActivateMultilineCalculation = function whenActivateMultilineCalculation() {
236236

237-
return tipContElement.html();
238-
}
237+
return tipContElement.html();
238+
}
239239
, calculateIfMultiLine = function calculateIfMultiLine(newValue) {
240240

241241
if (newValue !== undefined &&
@@ -583,6 +583,8 @@
583583
return {
584584
'restrict': 'A',
585585
'transclude': 'element',
586+
'priority': 1001,
587+
'terminal': true,
586588
'link': linkingFunction
587589
};
588590
}];

lib/angular-tooltips.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@
224224
, tipArrowElement = angular.element(window.document.createElement('tip-arrow'))
225225
, whenActivateMultilineCalculation = function whenActivateMultilineCalculation() {
226226

227-
return tipContElement.html();
228-
}
227+
return tipContElement.html();
228+
}
229229
, calculateIfMultiLine = function calculateIfMultiLine(newValue) {
230230

231231
if (newValue !== undefined &&
@@ -573,6 +573,8 @@
573573
return {
574574
'restrict': 'A',
575575
'transclude': 'element',
576+
'priority': 1001,
577+
'terminal': true,
576578
'link': linkingFunction
577579
};
578580
};

ng-model.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!doctype html>
2+
<html ng-app="myApp">
3+
<head>
4+
<link rel="stylesheet" type="text/css" href="dist/angular-tooltips.css">
5+
<title>Angularjs Tooltips</title>
6+
</head>
7+
<body id="demo-container">
8+
<div ng-controller="MyCtrl">
9+
<h1>Working</h1>
10+
Name: <input type="text" ng-model="name1"/><br>
11+
Hello {{name1}}!
12+
<br><br>
13+
<h1>Not working</h1>
14+
Name: <input type="text" ng-model="name2" tooltips tooltip-template="Hi"/><br>
15+
Hello {{name2}}!
16+
</div>
17+
<script type="text/javascript" src="bower_components/angular/angular.js"></script>
18+
<script type="text/javascript" src="dist/angular-tooltips.js"></script>
19+
<script type="text/javascript">
20+
var myApp = angular.module('myApp',['720kb.tooltips'])
21+
.controller('MyCtrl', function MyCtrl($scope) {
22+
23+
$scope.name1 = 'name1';
24+
$scope.name2 = 'name2';
25+
});
26+
</script>
27+
</body>
28+
</html>

semantic-ui.html

Lines changed: 0 additions & 120 deletions
This file was deleted.

0 commit comments

Comments
 (0)