Skip to content

Instantly share code, notes, and snippets.

Damian damianmr

Block or report user

Report or block damianmr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
damianmr / records.js
Created Nov 7, 2016 — forked from glenjamin/records.js
Flow types for immutable records.
View records.js
/* @flow */
import * as I from "immutable";
* Define an immutable record intended for holding reducer state
* @param spec - the keys and their default values
* @return a state record factory function
export function defineRecord<T: Object>(
View gist:2771118
function a() {
function b() {
args = a();
console.log(args, typeof args.push /* is an array */);
View gist:1309898
droppablesLoop: for (var i = 0; i < m.length; i++) {
if(m[i].options.disabled || (t && !m[i][i].element[0],(t.currentItem || t.element)))) continue; //No disabled and non-accepted
for (var j=0; j < list.length; j++) { if(list[j] == m[i].element[0]) { m[i].proportions.height = 0; continue droppablesLoop; } }; //Filter out elements in the current dragged item
m[i].visible = m[i].element.css("display") != "none"; if(!m[i].visible) continue; //If the element is not visible, continue
m[i].offset = m[i].element.offset();
m[i].proportions = { width: m[i].element[0].offsetWidth, height: m[i].element[0].offsetHeight };
if(type == "mousedown") m[i][i], event); //Activate the droppable if used directly from draggables
You can’t perform that action at this time.