Skip to content

Commit e03eadc

Browse files
committed
v1.0.7
1 parent ed429a6 commit e03eadc

5 files changed

Lines changed: 15 additions & 7 deletions

File tree

‎bower.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"author": "Siddique Hameed",
33
"name": "angular-timer",
4-
"version": "1.0.6",
4+
"version": "1.0.7",
55
"homepage": "https://github.com/siddii/angular-timer",
66
"description": "Angular-Timer : A simple AngularJS directive demonstrating re-usability & interoperability",
77
"repository": {

‎dist/README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
##Change Log
22

3+
###Version 1.0.7
4+
* Ignore `bower_components` folder - https://github.com/siddii/angular-timer/issues/30
5+
* Templates doesn't work with angular 1.2.0 - https://github.com/siddii/angular-timer/issues/29
6+
37
###Version 1.0.6
48
* Removing `node_modules` folder. Fix for - https://github.com/siddii/angular-timer/issues/26
59

‎dist/angular-timer.js‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* angular-timer - v1.0.6 - 2013-11-04 2:03 PM
2+
* angular-timer - v1.0.7 - 2013-11-27 1:48 PM
33
* https://github.com/siddii/angular-timer
44
*
55
* Copyright (c) 2013 Siddique Hameed
@@ -17,14 +17,18 @@ angular.module('timer', [])
1717
autoStart: '&autoStart'
1818
},
1919
controller: ['$scope', '$element', '$attrs', function ($scope, $element, $attrs) {
20+
var elHtml;
21+
2022
//angular 1.2 doesn't support attributes ending in "-start", so we're
2123
//supporting both "autostart" and "auto-start" as a solution for
2224
//backward and forward compatibility.
2325
$scope.autoStart = $attrs.autoStart || $attrs.autostart;
2426

25-
if ($element.html().trim().length === 0) {
26-
$element.append($compile('<span>{{millis}}</span>')($scope));
27+
elHtml = $element.html();
28+
if (elHtml.trim().length === 0) {
29+
elHtml = '{{millis}}';
2730
}
31+
$element.replaceWith($compile('<span>' + elHtml + '</span>')($scope));
2832

2933
$scope.startTime = null;
3034
$scope.timeoutId = null;

‎dist/angular-timer.min.js‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"author": "Siddique Hameed",
33
"name": "angular-timer",
4-
"version": "1.0.6",
4+
"version": "1.0.7",
55
"homepage": "https://github.com/siddii/angular-timer",
66
"licenses": {
77
"type": "MIT",

0 commit comments

Comments
 (0)