mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-09 09:00:34 +08:00
style(*): disallow space after object keys, other rules
add `disallowSpaceAfterObjectKeys` and associated changes. add `disallowMixedSpacesAndTabs` (no files changed) add `disallowMultipleLineStrings` (no files changed) Closes #9679
This commit is contained in:
committed by
Peter Bacon Darwin
parent
b64b9ea02c
commit
ed3f799b5c
@@ -371,8 +371,8 @@ angular.module('ngMessages', [])
|
||||
}
|
||||
|
||||
ngMessages.registerMessage(index, {
|
||||
type : $attrs.ngMessage || $attrs.when,
|
||||
attach : function() {
|
||||
type: $attrs.ngMessage || $attrs.when,
|
||||
attach: function() {
|
||||
if (!element) {
|
||||
$transclude($scope, function(clone) {
|
||||
$animate.enter(clone, null, $element);
|
||||
@@ -380,7 +380,7 @@ angular.module('ngMessages', [])
|
||||
});
|
||||
}
|
||||
},
|
||||
detach : function(now) {
|
||||
detach: function(now) {
|
||||
if (element) {
|
||||
$animate.leave(element);
|
||||
element = null;
|
||||
|
||||
Reference in New Issue
Block a user