More than one request to the same domain at a time This kills long-poll.
position: fixed; while the keyboard is open.
| var oldlog = console.log; | |
| console.log = function(){ | |
| oldlog.call(this, new Error().stack); | |
| oldlog.apply(this, arguments); | |
| } |
| // require something | |
| window.WM1 = require('weakmap'); | |
| window.WM2 = require('weak-map'); |
| var Gaffa = require('gaffa'); | |
| function Clipboard(){} | |
| Clipboard = Gaffa.createSpec(Clipboard, Gaffa.Action); | |
| Clipboard.prototype.type = 'clipboard'; | |
| Clipboard.prototype.trigger = function(parent, scope, event){ | |
| scope = scope || {}; | |
| scope.data = this.source.value; | |
| if (window.clipboardData && window.clipboardData.setData) { | |
| clipboardData.setData("Text", this.source.value); |
| var Gaffa = require('gaffa'); | |
| var gaffa = new Gaffa(); | |
| // Has gaffa as a peerDependency. | |
| var Textbox = require('gaffa-textbox'); | |
| gaffa.registerConstructor([ | |
| Textbox | |
| ]); |
| // Original | |
| var Gaffa = require('gaffa'), | |
| Container: require('gaffa-container'), | |
| Heading: require('gaffa-heading'), | |
| List: require('gaffa-list'), | |
| Form: require('gaffa-form'), | |
| Label: require('gaffa-label'), | |
| Text: require('gaffa-text'), | |
| Button: require('gaffa-button'), |
| var x = ''; | |
| var b = browserify(); | |
| b.add(someModulePath); | |
| b.bundle().pipe(through(function(chunk){ | |
| x+=chunk; | |
| })).on('end', function(){ | |
| var result = eval(x); | |
| // get what someModule exported. | |
| }); |
| function handle(successCallback, errorCallback){ | |
| if(!successCallback){ | |
| throw "You must provide a success callback"; | |
| } | |
| return function(error){ | |
| if(error){ | |
| if(!errorCallback){ | |
| throw error; | |
| } |
| var WhatChanged = require('what-changed'); | |
| var state = new WhatChanged(); | |
| var change = state.update(1); | |
| console.log(change); | |
| var change = state.update(2); |
| var crel = require('crel'); | |
| var select = crel('select', | |
| crel('option', 'a'), | |
| crel('option', 'b'), | |
| crel('option', 'c') | |
| ), | |
| message = crel('span', '<- should not be set, value is: ' + select.value); | |
| select.value = null; |