Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
d67ed98e
Commit
d67ed98e
authored
Jun 22, 2012
by
Dries
Browse files
- Patch
#1542676
by xjm: Fixed FAPI #states scope issue in Dependent prototype.
parent
4071fb8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/misc/states.js
View file @
d67ed98e
...
...
@@ -108,8 +108,8 @@ states.Dependent.prototype = {
this
.
values
[
selector
][
state
.
name
]
=
null
;
// Monitor state changes of the specified state for this dependee.
$
(
selector
).
bind
(
'
state:
'
+
state
,
$
.
proxy
(
function
(
e
)
{
this
.
update
(
selector
,
state
,
e
.
value
);
$
(
selector
).
bind
(
'
state:
'
+
state
,
{
selector
:
selector
,
state
:
state
},
$
.
proxy
(
function
(
e
)
{
this
.
update
(
e
.
data
.
selector
,
e
.
data
.
state
,
e
.
value
);
},
this
));
// Make sure the event we just bound ourselves to is actually fired.
...
...
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