Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
322edca1
Commit
322edca1
authored
Sep 14, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into arg_checking
parents
2bb0012d
fd4011a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
eval_apply.cpp
eval_apply.cpp
+4
-1
node_emitters.cpp
node_emitters.cpp
+4
-0
No files found.
eval_apply.cpp
View file @
322edca1
...
...
@@ -703,7 +703,10 @@ namespace Sass {
bindings
.
link
(
env
.
global
?
*
env
.
global
:
env
);
}
// bind arguments in the extended environment
bind_arguments
(
"mixin "
+
mixin
[
0
].
to_string
(),
params
,
args
,
prefix
,
bindings
,
f_env
,
new_Node
,
ctx
);
stringstream
mixin_name
;
mixin_name
<<
"mixin"
;
if
(
mixin
[
0
].
type
()
!=
Node
::
none
)
mixin_name
<<
" "
<<
mixin
[
0
].
to_string
();
bind_arguments
(
mixin_name
.
str
(),
params
,
args
,
prefix
,
bindings
,
f_env
,
new_Node
,
ctx
);
// evaluate the mixin's body
for
(
size_t
i
=
0
,
S
=
body
.
size
();
i
<
S
;
++
i
)
{
body
[
i
]
=
eval
(
body
[
i
],
prefix
,
bindings
,
f_env
,
new_Node
,
ctx
);
...
...
node_emitters.cpp
View file @
322edca1
...
...
@@ -19,6 +19,10 @@ namespace Sass {
{
switch
(
type
())
{
case
none
:
{
return
""
;
}
break
;
case
selector_group
:
case
media_expression_group
:
{
// really only needed for arg to :not
string
result
(
at
(
0
).
to_string
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment