Last active
August 29, 2015 14:09
-
-
Save imjoshdean/4574287ec19527a77549 to your computer and use it in GitHub Desktop.
Nested can/map/define
This file contains hidden or 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 Example = Map.extend({ }, { | |
define: { | |
name: { | |
value: 'Nailed it' | |
} | |
} | |
}); | |
var NestedMap = Map.extend({ }, { | |
define: { | |
isEnabled: { | |
value: true | |
}, | |
test: { | |
Value: Example | |
}, | |
examples: { | |
value: { | |
define: { | |
one: { | |
Value: Example | |
}, | |
two: { | |
define: { | |
deep: { | |
Value: Example | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment