Skip to content

Commit

Permalink
update version number
Browse files Browse the repository at this point in the history
  • Loading branch information
ziscloud committed Dec 7, 2015
1 parent 9b855bb commit a5dc236
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-bootstrap-toggle",
"description": "AngularJS version of Bootstrap Toggle",
"version": "0.1.1",
"version": "0.1.2",
"keywords": [
"angular",
"toggle",
Expand Down
13 changes: 9 additions & 4 deletions dist/angular-bootstrap-toggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,15 @@
require: ['toggle', 'ngModel'],
controller: 'ToggleController',
controllerAs: 'toggle',
link: function (scope, element, attrs, ctrls) {
var toggleCtrl = ctrls[0], ngModelCtrl = ctrls[1];
toggleCtrl.element = element;
toggleCtrl.init(ngModelCtrl);
compile: function (element, attrs, transclude) {
return {
pre: function (scope, element, attrs, ctrls) {
var toggleCtrl = ctrls[0], ngModelCtrl = ctrls[1];
toggleCtrl.element = element;
toggleCtrl.init(ngModelCtrl);
},
post: function () {}
}
}
};
}
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-bootstrap-toggle.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/angular-bootstrap-toggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@

// Configuration attributes
angular.forEach(['on', 'off', 'size', 'onstyle', 'offstyle', 'style'], function (key, index) {
//$log.info(key + ':' + $attrs[key]);
self[key] = angular.isDefined($attrs[key]) ?
(index < 6 ? $interpolate($attrs[key])($scope.$parent) : $scope.$parent.$eval($attrs[key])) :
toggleConfig[key];
//$log.info(key + ':' + self[key]);
});

this.init = function (ngModelCtrl_) {
Expand Down

0 comments on commit a5dc236

Please sign in to comment.