This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// main_page.js | |
tasksList: SC.ScrollView.design({ | |
layout: { top: 30, bottom: 0, left: 0, width: 299 }, | |
hasHorizontalScroller: NO, | |
contentView: SC.ListView.design({ | |
contentBinding: 'MyApp.tasksController.arrangedObjects', | |
selectionBinding: 'MyApp.tasksController.selection', | |
rowHeight: 29, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Person = Em.Object.extend({ | |
firstName: '', | |
lastName: '', | |
sayHello: function() { | |
alert('Hello!'); | |
} | |
}); | |
var person = Person.create({ | |
firstName: 'Mikhail', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/lexer.js b/lib/lexer.js | |
index a9e016a..01a14a1 100644 | |
--- a/lib/lexer.js | |
+++ b/lib/lexer.js | |
@@ -486,14 +486,14 @@ Lexer.prototype = { | |
}, | |
/** | |
- * '@extends' ([^{\n]+) | |
+ * '@extends' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/nodes/literal.js b/lib/nodes/literal.js | |
index 314329c..84583e7 100644 | |
--- a/lib/nodes/literal.js | |
+++ b/lib/nodes/literal.js | |
@@ -23,6 +23,7 @@ var Literal = module.exports = function Literal(str){ | |
Node.call(this); | |
this.val = str; | |
this.string = str; | |
+ this.prefixed = false; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/functions/index.js b/lib/functions/index.js | |
index fb55b71..7211a6c 100644 | |
--- a/lib/functions/index.js | |
+++ b/lib/functions/index.js | |
@@ -1106,64 +1106,24 @@ exports.selector = function selector(sel){ | |
return stack.length ? utils.compileSelectors(stack).join(',') : '&'; | |
}; | |
-function prefixNode(prefix, node) { | |
- switch (node.nodeName) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jscoverage lib lib-cov | |
STYLUS_COV=1 make REPORTER=html-cov > coverage.html | |
make[328]: /bin/sh: Resource temporarily unavailable | |
make[328]: *** wait: No child processes. Stop. | |
make[328]: *** Waiting for unfinished jobs.... | |
make[328]: *** wait: No child processes. Stop. | |
make[327]: *** [test-cov] Error 2 | |
make[326]: *** [test-cov] Error 2 | |
make[325]: *** [test-cov] Error 2 | |
make[324]: *** [test-cov] Error 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
overflow: hidden; | |
&:before { | |
position: absolute; | |
top: 50%; left: 50%; | |
margin: -10em; | |
border: dashed 2px; | |
width: 20em; height: 20em; | |
border-radius: 50%; | |
transform: skewX(20deg); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
overflow: hidden; | |
&:before { | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
margin: -10em; | |
border: dashed 2px; | |
width: 20em; | |
height: 20em; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.8) | |
// Compass (v1.0.0.alpha.19) | |
// ---- | |
$map: (key1: value1, key2: value2, key3: value3); | |
body { | |
prop1: bar; | |
prop2: map-get($map, 'foo'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/docs/extend.md b/docs/extend.md | |
index a0e037f..92b18c6 100644 | |
--- a/docs/extend.md | |
+++ b/docs/extend.md | |
@@ -185,3 +185,20 @@ Yielding: | |
} | |
Note that if the selector is not extended, it won't be in the resulting CSS, so it's a powerful way to create a library of extendable code. While you can insert code through mixins, they would insert the same code every time you use them, while extending placeholders would give you compact output. | |
+ | |
+## Optional extending |
OlderNewer