mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-29 05:15:38 +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
@@ -11,7 +11,7 @@ function createMockStyleSheet(doc, wind) {
|
||||
var ss = doc.styleSheets[doc.styleSheets.length - 1];
|
||||
|
||||
return {
|
||||
addRule : function(selector, styles) {
|
||||
addRule: function(selector, styles) {
|
||||
try {
|
||||
ss.insertRule(selector + '{ ' + styles + '}', 0);
|
||||
}
|
||||
@@ -23,7 +23,7 @@ function createMockStyleSheet(doc, wind) {
|
||||
}
|
||||
},
|
||||
|
||||
destroy : function() {
|
||||
destroy: function() {
|
||||
head.removeChild(node);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user