Something about calling createElement within the function not ahead of time makes the context of Provider work. Why?
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
" Vundle | |
filetype off | |
" Plugins | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" Vundle installed |
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
snippet rf | |
var React = require('react'); | |
var $1 = React.createClass({ | |
render() { | |
return {$0:null}; | |
} | |
}); | |
module.exports = $1; |
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
" Vundle | |
filetype off | |
" Plugins | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" Vundle installed | |
Bundle 'gmarik/vundle' |
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
" Vundle | |
filetype off | |
" Plugins | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#begin() | |
" Vundle installed | |
Plugin 'gmarik/vundle' |
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
function StyleSheet() { | |
var el = document.createElement('div'); | |
var prefixes = ['Webkit', 'Moz', 'O', 'ms']; | |
var prefixed = {}; | |
function getPrefixed(key) { | |
if (prefixed[key]) return prefixed[key]; | |
if (el.style[key] !== '') { |
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
import ActionConstants from '../ActionConstants'; | |
import {dispatch} from '../store' | |
import { bindActionCreators } from 'redux'; | |
export default bindActionCreators({ | |
setCurrentPlan: function (planId) { | |
return { | |
type: ActionConstants.SET_CURRENT_PLAN, | |
payload: { | |
id: planId |
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
switch ($this->permissions->user_type) | |
{ | |
case 1: | |
case 2: | |
// Global User or Chair | |
$this->load_global_view($sort); | |
break; | |
case 3: | |
$this->load_faculty_view($sort); |