commit
stringlengths
40
40
subject
stringlengths
1
3.25k
old_file
stringlengths
4
311
new_file
stringlengths
4
311
old_contents
stringlengths
0
26.3k
lang
stringclasses
3 values
proba
float64
0
1
diff
stringlengths
0
7.82k
2b43f59ee48cbf868efb2bcf15113c8025cb0541
update prompt options test to use setup function
test/promptOptionsSpec.js
test/promptOptionsSpec.js
var chai = require('chai'); var expect = chai.expect; var promptOptionsModule = require('../bin/promptOptions'); chai.should(); describe('As a user of the promptOptions module', function() { it('should return an object', function() { var test = promptOptionsModule; expect(test).to.be.a('object'...
JavaScript
0
@@ -390,24 +390,148 @@ nction() %7B%0A%0A + before(function() %7B%0A promptOptionsModule.setup(%7B%0A silent: true%0A %7D)%0A %7D)%0A%0A it('
6eaa067167e2e8809924a3edf36e1f3deedd83bf
fix tablo assert on children
src/tablo/Tablo.js
src/tablo/Tablo.js
import React from 'react'; import cx from 'classnames'; import { pure, skinnable, props, t } from '../utils'; import { Table } from 'fixed-data-table-2'; import Column, { defaultColumns, updateColumns } from './Column'; import FlexView from 'react-flexview'; const { maybe } = t; /** A table component based on fixed-d...
JavaScript
0
@@ -3620,17 +3620,16 @@ gth === -( %5B%5D.conca @@ -3638,17 +3638,16 @@ children -) %7C%7C Obje @@ -3653,16 +3653,25 @@ ect.keys +(data%5B0%5D) ).length
8a481898748f23b369a3100137b098b89f782ebd
test update
test/resumableFileSpec.js
test/resumableFileSpec.js
describe('ResumableFile functions', function() { /** * @type {Resumable} */ var resumable; /** * @type {ResumableFile} */ var file; beforeEach(function () { resumable = new Resumable({ }); file = new resumable.ResumableFile(resumable, { name: 'image.jpg', ...
JavaScript
0.003605
@@ -243,17 +243,17 @@ e = new -r +R esumable
80289afc2d448c1c7ff07d574838ee65e60886f6
simplify style reset
imagebox.js
imagebox.js
;(function() { function isNullOrUndefined(o) { return typeof o === 'undefined' || o === null; } function hasClass(el, className) { return el.className.match(new RegExp('(^| )' + className + '( |$)')); } function isValidImageDimension(num) { return !isNullOrUndefined(num) && !isNaN(num) && num > ...
JavaScript
0.000003
@@ -4626,280 +4626,211 @@ -this.image.style.position = %22%22;%0A this.image.style.top = %22%22;%0A this.image.style.left = %22%22;%0A this.image.style.height = %22%22;%0A this.image.style.width = %22%22;%0A this.image.style.paddingTop = %22%22;%0A this.image.style.minHeight = %22%22;%0A this...
aa98b3e0fd18f0b6f3672d7ea223f7be40a7d8da
Fix selectors
diningin.js
diningin.js
/** Jonathan Stassen - June 2015 https://github.com/TheBox193/diningin-enhancements Feature requests: send a Slack, Email, or PR A quick set of enhancmetns to dingingin.com Eat it up! **/ // var TAX = 0.1248; var TAX = 0.105; var options; function menuHighlight() { $(".menu-item").each(function(){ var t=$(thi...
JavaScript
0.000003
@@ -2033,16 +2033,48 @@ ces pdf%0A +%09%09%22#MostedLoved%22, // Most loved%0A %0A%0A%09%09/** @@ -2603,19 +2603,18 @@ ner: -fir +la st%22, // numb @@ -2609,32 +2609,46 @@ st%22, // -number of people +driver instructions (optional) %0A%09%09%22.che @@ -3012,84 +3012,8 @@ itle -%0A%09%09%22#pnlStepDeliveryInf...
a1b1f775f5924878627943fb417e20f8cf90b418
Set an explicit pathLength on the donut chart circle
lib/views/donut-chart.js
lib/views/donut-chart.js
import React from 'react'; import PropTypes from 'prop-types'; import {autobind} from '../helpers'; export default class DonutChart extends React.Component { static propTypes = { baseOffset: PropTypes.number, slices: PropTypes.arrayOf( PropTypes.shape({ type: PropTypes.string, classNam...
JavaScript
0.000001
@@ -1347,24 +1347,49 @@ g-$%7Btype%7D%60%7D%0A + pathLength=%22100%22%0A stro
8c3a55eb5886fb9f4e8823f9b390c5204c875005
Use blob to allow larger downloads
src/tracker/dom.js
src/tracker/dom.js
var DOM = (function(){ var setupTimerFunction = function(setFunc, clearFunc, callback, time){ var obj = { cancel: function(){ if (this.isActive){ clearFunc(this.id); this.isActive = false; } }, start: function(){ if (!this.isActive){ t...
JavaScript
0
@@ -2784,35 +2784,33 @@ nts)%7B%0A var -ele +a = document.crea @@ -2835,226 +2835,243 @@ -ele.setAttribute(%22href%22, %22data:text/plain;charset=utf-8,%22+encodeURIComponent(fileContents));%0A ele.setAttribute(%22download%22, fileName);%0A ele.style.display = %22none%22;%0A%0A document.bo...
f23d83aa93c0c7ca5397f471b7a1e50cd811216e
Allow use of argv for setting config options
config/index.js
config/index.js
var nconf = require('nconf'); var config = nconf.file({ file: 'defaults.json', dir: __dirname, search: true }).env(); Object.keys(config.get()).filter(function (key) { return !!key.match(/^SOFTAP_.*$/) }).forEach(function (key) { config.set(key.replace('SOFTAP_', '').toLowerCase(), config.get(key)) }) module.ex...
JavaScript
0
@@ -113,16 +113,23 @@ %7D).env() +.argv() ;%0A%0AObjec
bbfc773ad92fdeac1a909df1982e1faa5084cc1d
Improve fetch&analyse error handling
src/page-analysis/background/fetch-page-data.js
src/page-analysis/background/fetch-page-data.js
import extractPageContent from 'src/page-analysis/content_script/extract-page-content' /** * Given a URL will attempt an async fetch of the text and metadata from the page * which the URL points to. * * @param {string} url The URL which points to the page to fetch text + meta-data for. * @return {any} Object cont...
JavaScript
0
@@ -506,80 +506,216 @@ nst -doc = await fetchDOMFromUrl(url)%0A const loc = getLocationF +loc = getLocationFromURL(url)%0A const doc = await fetchDOMFromUrl(url)%0A // If DOM couldn't be fetched, then we can't get text/metadata%0A if (!doc) %7B throw new Error(%60Cannot get DOM f rom + URL -(url) +: $%...
07c0906bfaabeb35bc751dfb5e54ac565f03a8c3
Add searchString implementation to query.js
sashimi-webapp/src/database/retrieve/query.js
sashimi-webapp/src/database/retrieve/query.js
/* * * CS3283/4 - query.js * This class deals with query statements for the facade storage * This class will communicate with sqlCommands to get a certain command for * */ import SqlCommands from '../sql-related/sqlCommands'; import exceptions from '../exceptions'; const sqlCommands = new SqlCommands(); expor...
JavaScript
0.000002
@@ -456,24 +456,743 @@ Name);%0A %7D%0A%0A + static searchString(searchString) %7B%0A if (typeof Promise === 'function') %7B%0A return new Promise((resolve, reject) =%3E %7B%0A resolve(() =%3E %7B%0A let fileArr;%0A let folderArr;%0A%0A sqlCommands.partialSearchFile(searchSt...
169d31bc0f90c3cf8bd635c3426c5897653279ad
add notes
config/redis.js
config/redis.js
var host = process.env.REDIS_HOST || '127.0.0.1'; var port = process.env.REDIS_PORT || 6379; var db = process.env.REDIS_DB || 0; var password = process.env.REDIS_PASS || null; exports['default'] = { redis: function(api){ if(process.env.FAKEREDIS === 'false' || process.env.REDIS_HOST !== undefined...
JavaScript
0
@@ -237,94 +237,9 @@ i)%7B%0A - if(process.env.FAKEREDIS === 'false' %7C%7C process.env.REDIS_HOST !== undefined)%7B%0A%0A +%0A @@ -290,18 +290,16 @@ method%0A - // a @@ -348,18 +348,16 @@ tor%0A - // build @@ -413,16 +413,100 @@ or()%60?%0A%0A + if(process.env.FAKEREDIS === 'false' %7C...
e429d4190d0b9047c0005dea7e8265548682a13f
Refactor branding updater
jet/static/jet/js/src/layout-updaters/branding.js
jet/static/jet/js/src/layout-updaters/branding.js
var $ = require('jquery'); var BrandingUpdater = function($branding) { this.$branding = $branding; }; BrandingUpdater.prototype = { run: function() { var $branding = this.$branding; try { $branding.detach().prependTo($('.sidebar-wrapper')); } catch (e) { consol...
JavaScript
0
@@ -131,16 +131,116 @@ ype = %7B%0A + move: function($branding) %7B%0A $branding.detach().prependTo($('.sidebar-wrapper'));%0A %7D,%0A run: @@ -324,58 +324,27 @@ -$branding.detach().prependTo($('.sidebar-wrapper') +this.move($branding );%0A @@ -587,12 +587,105 @@ %7D);%0A + $('%3Cimg%...
ded88c2e40a26ba53ccb248726c561e2c1177b99
remove unused aria 'role'
components/Dropdown.js
components/Dropdown.js
import React from 'react' import Downshift from 'downshift' import matchSorter from 'match-sorter' import ArrowDown from './svg/Arrowdown' import CheckMark from './svg/Checkmark' import { COLORS } from '../lib/constants' class Dropdown extends React.PureComponent { state = { inputValue: this.props.selected.name,...
JavaScript
0.000258
@@ -4412,22 +4412,8 @@ %3Cdiv - role=%22button%22 cla
bad994639fc4e972b3e37946e7147d05fe7f9f6c
Add console warnings unit test
test/spec/widgets.spec.js
test/spec/widgets.spec.js
describe('VK widgets', function () { beforeEach(module('vk-api-angular')); beforeEach(inject(function (_$compile_, _$rootScope_) { $compile = _$compile_; $rootScope = _$rootScope_; })); it('call VK.Widgets.Comments()', inject(function () { var spy = spyOn(VK.Widgets, 'Comments'); $compile('<v...
JavaScript
0
@@ -1540,13 +1540,267 @@ ;%0A %7D)); +%0A%0A it('warns when using unsupported argument', inject(function () %7B%0A spyOn(console, 'warn');%0A $compile('%3Cvk-share data-type=%22nonexistent-type%22%3E%3C/vk-share%3E')($rootScope);%0A $rootScope.$digest();%0A expect(console.warn).toHaveBeenCalled();%0A %7...
e77b8e3a19068d3cceb8a8b680910b8d7f945965
rename cacheID to preact-starter
config/setup.js
config/setup.js
const { join } = require('path'); const webpack = require('webpack'); const V8LazyParse = require('v8-lazy-parse-webpack-plugin'); const ExtractText = require('extract-text-webpack-plugin'); const SWPrecache = require('sw-precache-webpack-plugin'); const Dashboard = require('webpack-dashboard/plugin'); const Clean = re...
JavaScript
0.000001
@@ -1329,15 +1329,14 @@ d: ' -inferno +preact -sta
f99ffc573f21059f1b157eaa3616f2bacc26732d
use defaultProps
src/button/ButtonRenderer.js
src/button/ButtonRenderer.js
import React from 'react'; import cx from 'classnames'; import { pure, skinnable, props, t } from '../utils'; import { buttonState } from './ButtonLogic'; import { FlexView } from '../flex'; import { Icon } from '../Icon'; import LoadingSpinner from '../loading-spinner'; import _TextOverflow from '../text-overflow'; e...
JavaScript
0.000001
@@ -789,16 +789,79 @@ nent %7B%0A%0A + static defaultProps = %7B%0A textOverflow: _TextOverflow%0A %7D%0A%0A getLoc @@ -1269,25 +1269,8 @@ flow - %7C%7C _TextOverflow %0A
ad29083484c5b3cd0357cdfa74fb5908e9e3df3c
Fix bug reading out links
src/view/markups.js
src/view/markups.js
import { h } from './vdom'; export const bold = { name: 'bold', selector: 'strong, b', vdom: children => <strong>{children}</strong>, }; export const italics = { name: 'italic', selector: 'em, i', vdom: children => <em>{children}</em>, }; export const link = { name: 'link', selector: 'a[href]', ...
JavaScript
0
@@ -313,20 +313,19 @@ ef%5D',%0A -attr +dom : node =
5112fa3935e08f3f012facff805b7c272128340e
Support some variant of JS
tools/extract-strings.js
tools/extract-strings.js
#!/usr/bin/env node 'use strict'; const program = require('commander'); const fs = require('fs'); const cheerio = require('cheerio'); require('babel-register')({ presets: ['es2015'] }); const AST = require('../src/lib/format/ftl/ast/ast').default; const Serializer = require('../src/lib/format/ftl/ast/serializer').d...
JavaScript
0
@@ -127,16 +127,97 @@ eerio'); +%0Aconst esprima = require('esprima');%0Aconst esprimaWalk = require('esprima-walk'); %0A%0Arequir @@ -1277,16 +1277,857 @@ data) %7B%0A + const res = new AST.Resource();%0A%0A const ast = esprima.parse(data.toString());%0A%0A esprimaWalk(ast, node =%3E %7B%0A if (node.type === ...
7218cfe8ec908037684665e4c374bdd7d299e931
Use gamebox color and add color constants
src/types/color.js
src/types/color.js
import {Math} from 'gamebox'; import colorConstants from 'flockn/constants/color'; const {clamp} = Math; class Color { constructor(r = 0, g = 0, b = 0, a = 1) { this.set(r, g, b, a); } set(r = 0, g = 0, b = 0, a = 1) { this.r = r; this.g = g; this.b = b; this.a = a; } lighten(factor) {...
JavaScript
0
@@ -5,16 +5,23 @@ rt %7BMath +, Types %7D from ' @@ -62,14 +62,10 @@ om ' -flockn +.. /con @@ -84,1616 +84,51 @@ ';%0A%0A -const %7Bclamp%7D = Math;%0A%0Aclass Color %7B%0A constructor(r = 0, g = 0, b = 0, a = 1) %7B%0A this.set(r, g, b, a);%0A %7D%0A%0A set(r = 0, g = 0, b = 0, a = 1) %7B%0A this.r = r;%...
bcea4c5dcf859a6e2f49561be1baa46d8555694c
Use `currentState` observer on router for routeChangeListener (#1717)
src/extension/listeners/routeChangeListener.js
src/extension/listeners/routeChangeListener.js
import { controllerLookup } from 'toolkit/extension/utils/ember'; import { withToolkitError } from 'toolkit/core/common/errors/with-toolkit-error'; import { getEntityManager } from 'toolkit/extension/utils/ynab'; let instance = null; export class RouteChangeListener { constructor() { if (instance) { retur...
JavaScript
0
@@ -153,27 +153,20 @@ rt %7B get -EntityManag +Rout er %7D fro @@ -196,12 +196,13 @@ ils/ -ynab +ember ';%0A%0A @@ -330,18 +330,20 @@ %7D%0A%0A -le +cons t routeC @@ -408,18 +408,65 @@ %5D;%0A%0A -le +function emitSameBudgetRouteChange() %7B%0A cons t applic @@ -524,1334 +524,442 @@ -applica...
0e486a6015990abc6183b0800a302b682a937d35
Remove leftover columns-related code in the paginator
src/extensions/paginator/backgrid-paginator.js
src/extensions/paginator/backgrid-paginator.js
/* backgrid-paginator http://github.com/wyuenho/backgrid Copyright (c) 2013 Jimmy Yuen Ho Wong and contributors Licensed under the MIT @license. */ (function ($, _, Backbone, Backgrid) { "use strict"; /** Paginator is a Backgrid extension that renders a series of configurable pagination handle...
JavaScript
0.000005
@@ -1582,141 +1582,8 @@ ons%0A - @param %7BBackbone.Collection.%3CBackgrid.Column%3E%7CArray.%3CBackgrid.Column%3E%7CArray.%3CObject%3E%7D options.columns%0A Column metadata.%0A @@ -1819,19 +1819,8 @@ s, %5B -%22columns%22, %22col @@ -1836,375 +1836,8 @@ );%0A%0A - this.columns = options.col...
69fbfc7c167a0a12b3337006d8c60e9c827fa007
remove console log
src/features/emoticon/emoticonPickerReducer.js
src/features/emoticon/emoticonPickerReducer.js
import emoticons from "../../constants/emoticons"; const handlers = { "emoticonPicker/show": (state, action) => ({ ...state, visible: true, x: action.x, y: action.y, direction: action.direction, onPick: action.onPick, search: "", filteredEmoticons: state.allEmoticons, selected: _.first(state.allEmot...
JavaScript
0.000003
@@ -1406,47 +1406,8 @@ %09%7D%0A%0A -%09%09console.log(%22nextIndex%22, nextIndex);%0A %09%09re
f07eab1a494e9f6e48a80a135902b7fbfd9cc1b3
Update hook to try getting around the update issues on renaming files in use for windows
src/update-hook.js
src/update-hook.js
module.exports.pre = function(version, packagePath) { return Promise.resolve(true); }; module.exports.post = function(version, packagePath) { return Promise.resolve(); };
JavaScript
0
@@ -1,86 +1,743 @@ -module.exports.pre = function(version, packagePath) %7B%0A%09return Promise.resolve(true +var fs = require('fs');%0Avar path = require('path');%0A%0Afunction rename(from, to) %7B%0A%09return new Promise(function(resolve, reject) %7B%0A%09%09fs.rename(from, to, function(err) %7B%0A%09%09%09if (err) %...
09f68c637ec230e523a9fca5ff3ff2ae33b9d351
Add layers to map options
app/anol/modules/map/map-service.js
app/anol/modules/map/map-service.js
angular.module('anol.map') .provider('MapService', [function() { var _view; var buildMapConfig = function(layers, controls) { var map = new ol.Map(angular.extend({}, { 'controls': controls })); map.setView(_view); angular.forEach(layers, function(layer) { ...
JavaScript
0.000001
@@ -195,17 +195,16 @@ -' controls ': c @@ -199,17 +199,16 @@ controls -' : contro @@ -201,32 +201,33 @@ ntrols: controls +, %0A %7D));%0A @@ -223,90 +223,26 @@ -%7D));%0A map.setView(_view);%0A angular.forEach(layers, function( + layers: layer -) %7B +s %0A @@ -250,42 +...
243949b415c875f56f01ef2793ebd23e4ddc88a4
Add semicolons and add temporary string for time remaining
app/assets/javascripts/add_skill.js
app/assets/javascripts/add_skill.js
function addSkill() { $("#new_skill").on("submit", function (event) { event.preventDefault(); var $target = $(event.target); console.log($target) if ($('#skill_title').val() === "") { alert("No skill specified") } else { $.ajax({ url: $target.attr("action") + '.json', t...
JavaScript
0.000001
@@ -152,16 +152,17 @@ $target) +; %0A if @@ -229,16 +229,17 @@ cified%22) +; %0A %7D e @@ -442,16 +442,48 @@ .title + + %22 - Time remaining: 24:00:00%22 + %22%3Cbr%3E%22)
0882c7fe96dfd2143c3effe86c3e2cd4ac4a29b3
update countdown.js based on code climate recommendations
app/assets/javascripts/countdown.js
app/assets/javascripts/countdown.js
(function (e) { e.fn.countdown = function (t, n) { function i() { eventDate = Date.parse(r.date) / 1e3; currentDate = Math.floor(e.now() / 1e3); seconds = eventDate - currentDate; days = Math.floor(seconds / 86400); seconds -= days * 60 * 60 * 24; hours = (Math.f...
JavaScript
0
@@ -9,17 +9,16 @@ n (e) %7B%0A -%0A e.fn @@ -75,16 +75,20 @@ +var eventDat @@ -125,16 +125,20 @@ +var currentD @@ -170,32 +170,36 @@ / 1e3);%0A +var seconds = eventD @@ -221,24 +221,28 @@ te;%0A +var days = Math. @@ -305,32 +305,36 @@ 0 * 24;%0A +var hours ...
6a22d2cdeb663a40f0427467ea1331b7065b7574
add gon and Routes
app/assets/javascripts/rails_spa.js
app/assets/javascripts/rails_spa.js
/* *= require perfect-scrollbar.min *= require pace.min *= require dcbox *= require angular *= require ng-notify *= require underscore *= require angular-resource *= require angular-sanitize *= require angular-route *= require angular-locale_ru-ru *= require_self *= require_tree . */ var rails_spa = angular.module("ra...
JavaScript
0
@@ -510,11 +510,65 @@ = Sign;%0A + $rootScope.gon = gon;%0A $rootScope.Routes = Routes;%0A %7D%5D)
9f790cb208b1b202503fc24b6d3b267e7ea3aeb1
Stop truncating numbers
libraries/Native/Show.js
libraries/Native/Show.js
Elm.Native.Show = {}; Elm.Native.Show.make = function(elm) { elm.Native = elm.Native || {}; elm.Native.Show = elm.Native.Show || {}; if (elm.Native.Show.values) return elm.Native.Show.values; var NList = Elm.Native.List.make(elm); var Array = Elm.Array.make(elm); var List = Elm.List.make(elm); ...
JavaScript
0
@@ -787,41 +787,13 @@ rn v -.toFixed(2).replace(/%5C.0+$/g, '') + + %22%22 ;%0A
9a1c88d2011dac0e7c646596fed7f45cc8dc5906
remove hard-coded localdomain
test/test.js
test/test.js
Test = { get: function(id) { return document.getElementById(id); }, load: function() { Test.store.get('some_key', function(ok, val) { if (ok) Test.get('data').value = val; }); }, save: function() { var val = Test.get('data').value = val; Test.store.set('some_key', val); ...
JavaScript
0.811801
@@ -418,46 +418,8 @@ est' -, %7B %0A domain: 'localdomain'%0A %7D );%0A%0A
bb24bda227faf4c0fe3dc56d3af82b789bc7e54d
Update tests for direct injection operator
test/test.js
test/test.js
var ying = require('../lib/main'); var assert = require('assert'); var util = require('util'); var specIndex = 1; var specGroupIndex = 1; function run_spec(func, pas, result) { it(util.format('spec(%d) group(%d)', specIndex, specGroupIndex), function () { assert.equal(func(pas), result); specIndex...
JavaScript
0
@@ -2859,16 +2859,306 @@ %3E %5Ct&'%5D%0A + %7D,%0A %7B%0A src: '%7B%7B~ if(d.flag)%7B %7D%7D%7B%7B= _e(d.trueValue)%7D%7D%7B%7B~ %7Delse%7B %7D%7D%7B%7BfalseValue%7D%7D%7B%7B~ %7D %7D%7D',%0A pas: %5B%7Bflag: true, trueValue: '%3Ctrue%3E', falseValue: '%3Cfalse%3E'%7D, %7BtrueValue...
37a29cb0dbe8b5f65af83b4f60f90324d1470f31
Improve tests
test/test.js
test/test.js
const chai = require('chai'); const ethAddress = require('ethereum-address'); const { RaidenNode } = require('../index.js'); const { expect } = chai; const raidenEndpoints = ['http://localhost:5001', 'http://localhost:5002']; const testnetToken = '0x0f114a1e9db192502e7856309cc899952b3db1ed'; const settleTimeout = 100...
JavaScript
0.000009
@@ -1,12 +1,44 @@ +/* eslint-disable no-console */%0A const chai = @@ -466,16 +466,176 @@ rue;%0A%7D%0A%0A +function describeEach(message, arr, cb) %7B%0A arr.forEach((elem, index) =%3E %7B%0A describe(%60$%7Bmessage%7D%5B$%7Bindex%7D%5D%60, () =%3E %7B%0A cb(elem, index);%0A %7D);%0A %7D);%0A%7D%0A%0A ...
c3dab602abe090994b7410abb6183d20cee9ee4c
Convert hidden message to lower case JFF
test/test.js
test/test.js
'use strict'; var parseConcat = require('..'); var stread = require('stread'); it('should concat-stream and JSON.parse', function (done) { var data = { name: null, version: "1.1.1", tags: [true, "awesomeness", [{}]] }; stread(JSON.stringify(data, null, 2)) .pipe(parseConcat(function ...
JavaScript
0.999999
@@ -760,16 +760,30 @@ join('') +.toLowerCase() ;%0A %7D;%0A%0A @@ -957,15 +957,15 @@ al(' -MESSAGE +message ');%0A
956a2cd60b497dc5f96909d001d04620fa0da50b
Add test using cli
test/test.js
test/test.js
var assert = require('assert'); var fs = require('fs'); var path = require('path'); var continuation = require('../continuation'); var files = [ 'readfile.js', 'fib.js', 'if.js', 'ifvar.js', 'loop.js', 'switch.js', 'switchbreak.js', 'whilebreak.js', 'continue.js', 'factor.js', 'pi.js', 'diskusa...
JavaScript
0.000001
@@ -73,24 +73,70 @@ re('path');%0A +var child_process = require('child_process');%0A var continua @@ -539,20 +539,28 @@ %5D;%0A%0Avar -test +compileByApi = funct @@ -657,32 +657,39 @@ ) %7B%0A if (err) + return done(err);%0A @@ -816,16 +816,23 @@ if (err) + return done(er @@ -900,16 +900,412 @@ %7D...
b51e505a1780034f8de9f60938af1be576308e56
format code
test/test.js
test/test.js
'use strict'; var pugI18n = require('../index'); var path = require('path'); var fs = require('fs-extra'); var sassert = require('stream-assert'); var assert = require('assert'); var gulp = require('gulp'); require('mocha'); var fixtures = function (glob) { return path.join(__dirname, './fixtures', glob); } describe...
JavaScript
0.000009
@@ -3200,17 +3200,16 @@ %7D);%0A%0A -x describe @@ -3694,22 +3694,33 @@ lp.dest( -'.tmp' +options.i18n.dest ))%0A
633b33c80a6d23adcf82cc1bc8d97bbb6e17d341
Update test.js
test/test.js
test/test.js
var should = require('should'); var assert = require('assert'); var request = require('supertest'); var app = require("./server"); var server = app.listen(0); var port = server.address().port; describe('Test cubieboard-monitor', function() { var server; var port; var url;; // within before() you can...
JavaScript
0.000001
@@ -621,24 +621,26 @@ one();%0A %7D +); %0A // use
d25944ea1f990723f6f4d873366cfe83ab8d2271
move utility transformers to top - fixes #1440
src/babel/transformation/transformers/index.js
src/babel/transformation/transformers/index.js
export default { _modules: require("./internal/modules"), "minification.deadCodeElimination": require("./minification/dead-code-elimination"), "es7.classProperties": require("./es7/class-properties"), "es7.trailingFunctionCommas": require("./es7/...
JavaScript
0
@@ -80,24 +80,366 @@ /modules%22),%0A +%0A %22utility.removeDebugger%22: require(%22./utility/remove-debugger%22),%0A %22utility.removeConsole%22: require(%22./utility/remove-console%22),%0A%0A %22utility.inlineEnvironmentVariables%22: require(%22./utility/inline-environment-variab...
025d2815497fd4b4906786ea573b1f9779ade9a3
Update test.js
test/test.js
test/test.js
'use strict'; var util = require('util'); var path = require('path'); var yeoman = require('yeoman-generator'); var yosay = require('yosay'); var chalk = require('chalk'); var PhpstylGenerator = yeoman.generators.Base.extend({ init: function () { this.pkg = require('../package.json'); this.on('end', functi...
JavaScript
0.000001
@@ -1,8 +1,15 @@ +//Todo%0A 'use str
bf68aa846eba7fe0cedacb34f82570c3aeba1cc4
update or create doc
controller/hostname.js
controller/hostname.js
"use strict"; var util = require("util"); var goose = require("../models/mongoose").instance; var hostnameSchema = require("../models/schema-hostname.js"); var Member = goose.model("Member", hostnameSchema); module.exports = { create: create, read: read, update: update, delete: deleteFn }; /** * @description Cre...
JavaScript
0
@@ -2608,24 +2608,38 @@ %0A%09%09%0A%09%09%7B new: + true, upsert: true %7D, %0A%0A%09 @@ -2636,16 +2636,16 @@ rue %7D, %0A - %0A%09%09respo @@ -2680,24 +2680,50 @@ , newDoc) %7B%0A +%09%09newDoc = newDoc %7C%7C %7B%7D;%0A%0A %09%09if (err) %7B @@ -2760,22 +2760,35 @@ %0A%09%09if (! +Object.keys( newDoc +) .l...
a47c4aab289201869184752214f1a642fb3637d3
Update test.js
test/test.js
test/test.js
function traverseDOM(node){ var childLen=node.childNodes.length; if(childLen==0){ }else{ for(var i=0;i<childLen;i++){ var childTmp=node.childNodes[i]; console.log(childTmp); if(childTmp.nodeName=="DIV"){ if(childTmp.style){ var obj=window.getComputedStyle(childTmp); ...
JavaScript
0.000001
@@ -592,13 +592,18 @@ document +.body );%0A%0A%0A
9c5c46d66fc7289a949655dfaef09d83bbd3f4de
support for sequential execution of independent test files
test/test.js
test/test.js
#!/usr/bin/env node /*jslint white: true, browser: true, plusplus: true, vars: true, nomen: true, bitwise: true*/ /*global jQuery: false, $: false, data_graft: false*/ /* Copyright 2010-2011, Carlos Guerreiro * Licensed under the MIT license */ 'use strict'; var jsdom = require('jsdom'); jsdom.env({ html: 'test-...
JavaScript
0
@@ -287,16 +287,164 @@ dom');%0A%0A +var tests = %5B'test-1'%5D;%0A%0Afunction runNext() %7B%0A var test = tests.shift();%0A%0A if(test === undefined) %7B%0A return;%0A %7D%0A%0A console.log(test+ ':');%0A%0A jsdom.en @@ -451,16 +451,18 @@ v(%7B%0A + html: 'tes @@ -461,23 +461,23 @@ ml: -' test --...
85e3e9da16c8e72a4ce77763c79ffc7e289f8e7b
Update generator testfile
test/test.js
test/test.js
/*global describe, beforeEach, it*/ var path = require('path'); var helpers = require('yeoman-generator').test; var assert = require('assert'); describe('Website generator test', function () { beforeEach(function (done) { helpers.testDirectory(path.join(__dirname, 'temp'), function (err) { if (err) {...
JavaScript
0
@@ -39,19 +39,16 @@ ar path - = requir @@ -56,16 +56,65 @@ ('path') +;%0Avar assert = require('yeoman-generator').assert ;%0Avar he @@ -159,23 +159,18 @@ st;%0Avar -assert +os = requi @@ -177,20 +177,15 @@ re(' -assert +os ');%0A%0A -%0A desc @@ -194,30 +194,16 @@ be(' -Website generator test +:app ...
b390c447cb2b0d988805861672717df651692268
Add test coverage for floats
test/test.js
test/test.js
var assert = require("assert") , sinon = require('sinon') , clock , tickFunction , callbackFunction; Countdown = require("../lib/countdown"); describe("countdown.js", function() { beforeEach(function() { clock = sinon.useFakeTimers(); tickFunction = sinon.spy(); callbackFunction = sinon.spy(); ...
JavaScript
0
@@ -1164,32 +1164,804 @@ t == 1);%0A %7D); +%0A%0A it(%22executes onComplete at 2 ticks for 2.4%22, function() %7B%0A new Countdown(2.4, tickFunction, callbackFunction);%0A clock.tick(1000);%0A assert(callbackFunction.callCount == 0);%0A clock.tick(1000);%0A assert(callbackFunction.callC...
cd0188a1b953850a545cd290fa1351fe60d0df97
correct the text for delta E tests
test/test.js
test/test.js
// unit-tests /** * >> function from jasmine framework (https://github.com/pivotal/jasmine) * Matcher that checks that the expected item is equal to the actual item * up to a given level of decimal precision (default 2). * * @param {Number} expected * @param {Number} precision, as number of decimal places */...
JavaScript
0.000465
@@ -503,17 +503,16 @@ / 2);%0A%7D -; %0A%0A%0A%0Amodu @@ -2078,35 +2078,20 @@ Delat E -is not close enough +test . Execte @@ -2832,27 +2832,12 @@ t E -is not close enough +test . Ex
c871c9e5a7ce3e7f43c05271bcc61f39b4ef6dfb
Update test.js
test/test.js
test/test.js
var async = require('async'), assert = require("assert"), should = require("should"), sitemap = require("../lib/sitemap"), isurl = require("is-url"); var sitemaps = ['http://www.walmart.com/sitemaps.xml', 'http://www.cbs.com/sitemaps.xml']; (function(){ sitemap.getSites("http://www.cbs.com/sitemaps/show/show_si...
JavaScript
0.000001
@@ -281,55 +281,39 @@ http +s ://www. -cbs.com/sitemaps/show/show_ +google.com/work/ site -M +m ap -_index .xml @@ -661,57 +661,39 @@ http +s ://www. -cbs.com/sitemaps/image/photo_ +google.com/work/ sitemap -_index .xml
776fc4e70ac58750444e75e8736adba2b136162f
make time comparison work in calendar
Instanssi/main2019/static/main2019/js/radio.js
Instanssi/main2019/static/main2019/js/radio.js
'use strict'; $(function() { var calid = "46oohofs0emt0rrm05darkobdo@group.calendar.google.com"; var apik = "AIzaSyAnSBTmLepfcMtJoft8foXhstAv7PpYTos"; var calurl = "https://www.googleapis.com/calendar/v3/calendars/" + calid + "/events?key=" + apik + "&timeMin=2019-02-20T10:00:00%2B02:00"; var wds = ['S...
JavaScript
0.000004
@@ -591,16 +591,81 @@ y = '';%0A + var tzoffset = (new Date()).getTimezoneOffset() * 60000;%0A @@ -678,16 +678,17 @@ teNow = +( new Date @@ -688,16 +688,38 @@ ew Date( +Date.now() - tzoffset) ).toISOS @@ -727,16 +727,24 @@ ring();%0A + %0A @@ -1996,21 +1996,38 @@ '%3Cp -class=%...
824bc11b7aaaff117edd693fb454e0153f960063
Change some tests' text.
test/test.js
test/test.js
//import { expect } from "chai"; import test from "tape"; import tie from "../lib"; test("Constraint ties", (assert) => { var x = tie(2); var y = tie(() => 3); var z = tie(() => x.get() * y.get()); assert.equal(x.get(), 2, "A constraint is equal to set value."); assert.equal(y.get(), 3, "A constraint value ca...
JavaScript
0.000004
@@ -137,71 +137,12 @@ 2);%0A -%09var y = tie(() =%3E 3);%0A%09var z = tie(() =%3E x.get() * y.get());%0A%09 + asse @@ -162,18 +162,24 @@ t(), 2,%0A -%09%09 + %22A const @@ -203,32 +203,58 @@ set value.%22);%0A%09 +var y = tie(() =%3E 3);%0A assert.equal(y.g @@ -262,18 +262,24 @@ t(), 3,%0A -%09%...
249daa06a03eca011dd52c5d8878e2d268f802eb
set undefined key to text string
controllers/gc2/sql.js
controllers/gc2/sql.js
/* * @author Martin Høgh <mh@mapcentia.com> * @copyright 2013-2018 MapCentia ApS * @license http://www.gnu.org/licenses/#AGPL GNU AFFERO GENERAL PUBLIC LICENSE 3 */ var express = require('express'); var router = express.Router(); var config = require('../../config/config.js').gc2; var request = require('r...
JavaScript
0.000227
@@ -1534,24 +1534,32 @@ + %22&key=%22 + + (typeof req.session @@ -1568,16 +1568,66 @@ c2ApiKey + !==%22undefined%22 ? req.session.gc2ApiKey : %22xxxxx%22) + %22&cus
917575b4dca3c6237a30eb5a4e9e54f19d6729ba
move legacy parameters to a separate function
controllers/landsat.js
controllers/landsat.js
'use strict'; var ejs = require('elastic.js'); var client = require('../services/elasticsearch.js'); var Boom = require('boom'); module.exports = function (params, request, cb) { var err; var supported_query_re = new RegExp('^[0-9a-zA-Z#\*\.\_\:\(\)\"\\[\\]\{\}\\-\\+\>\<\= ]+$'); // Build Elastic Search Query...
JavaScript
0.000002
@@ -128,21 +128,23 @@ );%0A%0A -module.export +var legacyParam s = @@ -165,24 +165,20 @@ ms, -request, cb +q, limit ) %7B%0A -%0A va @@ -284,66 +284,8 @@ );%0A%0A - // Build Elastic Search Query%0A var q = ejs.Request();%0A%0A if @@ -463,22 +463,17 @@ -return cb( +throw err -) ;%0A @@ -624,33 ...
cd41e87da5b92b6083a30981bb3abdd3350ef424
Change clickable link and open it in new tab
core/js/license-trial-notification.js
core/js/license-trial-notification.js
/** * * @copyright Copyright (c) 2020, ownCloud GmbH * * This code is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful,...
JavaScript
0
@@ -981,16 +981,32 @@ %22button%22 + target=%22_blank%22 href=%22%7B @@ -2944,20 +2944,8 @@ s:// -marketplace. ownc @@ -2957,16 +2957,23 @@ com/ -demo-key +try-enterprise/ ',%0A%09
284bff548cc3d06cab8082ba030c9bf1d38b1662
Remove stale console.log().
src/com/google/foam/demos/heroes/Controller.js
src/com/google/foam/demos/heroes/Controller.js
/** * @license * Copyright 2016 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
JavaScript
0
@@ -4023,58 +4023,8 @@ ) %7B%0A - console.log('*****', this.selection, hero);%0A
f419b1f475e426bd5ee4cb35e978ccb738595fec
Update test.js
test/test.js
test/test.js
var assert = require('assert'); var gutil = require('gulp-util'); var cssfont64 = require('../index'); var fs = require('fs'); var path = require('path'); describe('gulp-cssfont64', function() { describe('in buffer mode', function() { it('should encode fonts to base64 and generate a less file', func...
JavaScript
0.000001
@@ -68,17 +68,18 @@ ');%0Avar -c +le ssfont64 @@ -180,20 +180,26 @@ e('gulp- -cssf +Woff2LessF ont64', @@ -800,8 +800,9 @@ %09%7D);%0A%7D); +%0A
7ee612d3bd0e6208f7da41912636508ba877a105
add zindex to url marker service layer
src/modules/urlmarkers/urlmarker-service.js
src/modules/urlmarkers/urlmarker-service.js
import './module.js'; import Feature from 'ol/Feature'; import Point from 'ol/geom/Point'; angular.module('anol.urlmarkers') /** * @ngdoc object * @name anol.urlmarkers.UrlMarkersServiceProvider */ .provider('UrlMarkersService', [function() { var _defaultSrs; var _propertiesDelimiter = '|'; ...
JavaScript
0
@@ -3381,17 +3381,16 @@ Offset;%0A -%0A @@ -6087,24 +6087,62 @@ olLayer: %7B%0A + zIndex: 2001,%0A
1b5561e2f643b6716087450cebfea2f1c6ee7d20
Replace trailing whitespaces for example code.
examples/example-tests.js
examples/example-tests.js
"use strict"; function simplePassing() { describe('test embedded mocha', function() { it('should run jasmine-style tests', function() { expect(1) .toBe(1); }); it('should run should-style tests', function() { should(1).ok; }); }); } function simpleFailing() { describe('test e...
JavaScript
0.000007
@@ -420,32 +420,353 @@ %7D);%0A %7D);%0A%7D%0A%0A +// Make sure the code block starts with no indentation.%0Afunction _replaceTrailingWhitespaces(lines) %7B%0A var firstLineTrailingSpaces = lines%5B1%5D.match(/%5E%5B%5Cs%5Ct%5D+/);%0A if (firstLineTrailingSpaces) %7B%0A lines = lines.map(function(line) %7B%0A...
f222f29ead9779cd1a65b062006a6e17f30d8f6a
Remove can-types tests
test/test.js
test/test.js
// Core tests require('can-component/test/tests'); require('can-define/test/test'); // require('can-route/test/test'); in dev-only // require('can-route-pushstate/can-route-pushstate_test'); in dev-only // require('can-stache/test/stache-test'); in dev-only require('can-stache-bindings/test/tests'); require('can-set/te...
JavaScript
0
@@ -2235,40 +2235,8 @@ ');%0A -require('can-types/test/test');%0A %0A%0A//
a4085b034614a6befae8a35f23ce0cb25ad20919
Create viewMatrix only once instead of on each gl-render
aoshader.js
aoshader.js
var fs = require("fs") var createShader = require("gl-shader") var mat4 = require('gl-matrix').mat4 module.exports = function(game, opts) { return new ShaderPlugin(game, opts); }; module.exports.pluginInfo = { clientOnly: true, loadAfter: ['voxel-stitch', 'voxel-mesher'], }; function ShaderPlugin(game, opts) {...
JavaScript
0.000001
@@ -275,11 +275,27 @@ her' +, 'voxel-camera' %5D,%0A - %7D;%0A%0A @@ -718,16 +718,175 @@ module%0A%0A + this.camera = game.plugins.get('voxel-camera');%0A if (!this.camera) throw new Error('voxel-shader requires voxel-camera plugin'); // for camera view matrix%0A%0A this.p @@ -1886,24 +1886,59 @@ s.resize();%...
f6291c43f2b6d02c17eda7e523ca1e3944217eb9
Update tests
test/test.js
test/test.js
/* global require, describe, it */ 'use strict'; // MODULES // var // Expectation library: chai = require( 'chai' ), // Module to be tested: CONST = require( './../lib' ); // VARIABLES // var expect = chai.expect, assert = chai.assert; // TESTS // describe( 'compute-const-max-safe-integer', function tests(...
JavaScript
0.000001
@@ -1,349 +1,272 @@ -/* global require, describe, it */%0A'use strict';%0A%0A// MODULES //%0A%0Avar // Expectation library:%0A%09chai = require( 'chai' ),%0A%0A%09// Module to be tested:%0A%09CONST = require( './../lib' );%0A%0A%0A// VARIABLES //%0A%0Avar expect = chai.expect,%0A%09assert = chai.assert;%0A%0A%0A// TEST...
f19f3e8530fb3febad5cc39e90c32057b79dabc6
Remove length getter
color-rgb.js
color-rgb.js
import ArrayLikeObjectWrapper from "array-like-object-wrapper"; function pad(str, len, pos = "start", chr = "0") { str = String(str); len = Number(len); pos = String(pos); chr = String(chr); if(pos !== "start" && pos !== "end") { throw new Error("pad: pos is neither 'start' nor 'end'"); ...
JavaScript
0.000009
@@ -1837,52 +1837,8 @@ %7D%0A%0A - get length() %7B%0A return 3;%0A %7D%0A%0A
950f66bb40299430002bf598e421ce2211d65bab
Change unary increments to addition assignments
colorgame.js
colorgame.js
var colors; var winningColor; var numOfGuesses = 6; var colorRange = "Full"; // 0 = full, 1 = david var background = window.getComputedStyle(document.querySelector("body"), null).getPropertyValue("background-color"); var possibleGuesses = document.querySelectorAll(".colorGuess"); var messageDisplay = document.querySele...
JavaScript
0
@@ -582,33 +582,34 @@ esses.length; i+ -+ +=1 ) %7B%0A poss @@ -2048,33 +2048,34 @@ %3C rgb.length; i+ -+ +=1 ) %7B%0A rgb%5B @@ -2856,25 +2856,26 @@ i %3C num; i+ -+ +=1 ) %7B%0A @@ -3324,33 +3324,34 @@ esses.length; i+ -+ +=1 ) %7B%0A if ( @@ -4359,33 +4359,34 @@ esses.length; i...
e5421f234c886041403ade4c2a50121f8b68393b
Tidy up.
tests/document/transclusion.test.js
tests/document/transclusion.test.js
import test from 'tape' import { insertRows, deleteRows, insertCols, deleteCols } from '../../src/sheet/sheetManipulations' import { getValue, getSource } from '../../src/shared/cellHelpers' import createRawArchive from '../util/createRawArchive' import loadRawArchive from '../util/loadRawArchive' import setupEngine fr...
JavaScript
0.000002
@@ -129,18 +129,8 @@ rt %7B - getValue, get
a7619976ead40bf6cd7ceff06403ea54ae7eae5d
Update bin to bert
bin/_bert.js
bin/_bert.js
#! /usr/bin/env node const path = require('path') const every = require('lodash/every') const argv = require('minimist')(process.argv.slice(2), { default: { bertfile: '.bert.js' } }) const localBert = require('..') const logger = require('../lib/logger') const getTasksToLoad = () => argv._.length === 0 ? ['de...
JavaScript
0
@@ -42,16 +42,51 @@ ('path') +%0Aconst resolve = require('resolve') %0A%0Aconst @@ -224,40 +224,8 @@ %0A%7D)%0A -const localBert = require('..')%0A cons @@ -257,24 +257,166 @@ b/logger')%0A%0A +/* Load instance to bert */%0Aconst localBert = process.env.BERT_MODE_DEV%0A ? require('..')%0A : resolve('bert.js', %...
27bcf5348d2c1aaf5db7cd500ea4fe9068684299
correct constraints setting
src/content/getusermedia/resolution/js/main.js
src/content/getusermedia/resolution/js/main.js
/* * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. */ 'use strict'; var dimensions = document.querySelector('#dimensions'); var video = do...
JavaScript
0.000001
@@ -2481,16 +2481,132 @@ tream;%0D%0A + // Refresh button list in case labels have become available%0D%0A return navigator.mediaDevices.enumerateDevices();%0D%0A %7D%0D%0A%0D%0Afun @@ -3123,34 +3123,56 @@ %0D%0A -constraints. +var videoConstraints = %7B%0D%0A video -. +: %7B deviceId = v @@ -3167,18 +3...
088e8b70675d496037c546a6b513ca516fe97617
Make sure syntax etc errors in a command don't asplode bosco.
bin/bosco.js
bin/bosco.js
#!/usr/bin/env node 'use strict'; /** * Bosco command line tool */ var program = require('commander'); var Bosco = require('../index'); var _ = require('lodash'); var pkg = require('../package.json'); var completion = require('../src/completion'); var fs = require('fs'); var path = require('path'); require('colors'...
JavaScript
0
@@ -348,16 +348,42 @@ ewhere%0A%0A +var bosco = new Bosco();%0A%0A // Go ov @@ -1273,25 +1273,170 @@ File - = require(file); +;%0A try %7B%0A commandFile = require(file);%0A %7D catch (err) %7B%0A bosco.error('Error requiring command file: ' + file + ': ' + err);%0A return %5B%5D;%0A %7D %0A...
5b96acfd16ab64cc3ea5e9066a63526178f61781
Make this works on windows too
bin/index.js
bin/index.js
#!/usr/bin/env node var spawn = require('child_process').spawn var npm = require.resolve('npm/cli') spawn(npm, process.argv.slice(2), {stdio: 'inherit'})
JavaScript
0.000016
@@ -105,13 +105,39 @@ awn( -npm, +process.execPath, %5Bnpm%5D.concat( proc @@ -153,16 +153,17 @@ slice(2) +) , %7Bstdio
d608644dbfe3c0c675d66dbfdb6614b198d17c39
Make Jira project key uppercase before calling. Jira project key seems to be case sensitive
bin/index.js
bin/index.js
#!/usr/bin/env node var chalk = require('chalk'); var YAML = require('yamljs'); var IssuePackForGithub = require('../lib/IssuePackForGithub'); var IssuePackForJira = require('../lib/IssuePackForJira'); var Util = require('../lib/Util').default; var prompt = require('prompt'); //Create new Util class var util = new Ut...
JavaScript
0.000541
@@ -1543,16 +1543,70 @@ ectKey = + result.projectKey ? result.projectKey.toUpperCase() : result.
abffd0a00ae6c11158cd8924e989e86c9053e3c6
Stop server when SIGINT is triggered
bin/serve.js
bin/serve.js
#!/usr/bin/env node import http from 'http' import url from 'url' import path from 'path' import fs from 'fs-extra' import { execSync as exec } from 'child_process' import args from 'args' import open from 'open' import mime from 'mime' import colors from 'colors' import { isSite, exists } from '../lib/etc' import c...
JavaScript
0
@@ -2417,15 +2417,90 @@ en(url)%0A %7D) +%0A%0A process.on('SIGINT', () =%3E %7B%0A server.close()%0A process.exit()%0A %7D) %0A%7D%0A
48d9f33fda83b250d4018f8f53362c69f15e046f
fix --static share
bin/share.js
bin/share.js
var hyperdrive = require('hyperdrive') var memdb = require('memdb') var walker = require('folder-walker') var each = require('stream-each') var raf = require('random-access-file') var fs = require('fs') var path = require('path') var replicate = require('../lib/replicate') module.exports = function (argv) { var driv...
JavaScript
0
@@ -939,16 +939,17 @@ %0A if +( (archive @@ -971,16 +971,32 @@ e.owner) + && archive.key) %7B%0A @@ -2194,16 +2194,29 @@ plicate( +argv, archive )%0A
cdb96322f26d60c49df23cf0379a8ec1e90eccd8
Send other available restaurants with daily menus
bin/slack.js
bin/slack.js
'use strict' let moment = require('moment') let winston = require('winston') let request = require('request') let WebClient = require('@slack/client').WebClient let config = require('../config') let web = new WebClient(config.SLACK_API_TOKEN) let isWeekend = () => { let weekDay = moment().day() return weekDay ===...
JavaScript
0
@@ -7,16 +7,42 @@ trict'%0A%0A +let _ = require('lodash')%0A let mome @@ -573,55 +573,566 @@ let -prepareMessage = (json) =%3E %7B%0A let message = '' +onlySubscribed = (allowed) =%3E (service) =%3E allowed.indexOf(service.name) !== -1%0Alet onlyUnsubscribed = (allowed) =%3E (service) =%3E allowed.indexOf(service....
a4346c0b113f27d5a3e0c52a872e40c35af0cc4b
Move copys to options root
password-strength-meter.js
password-strength-meter.js
/* ======================================================================== * Password Strength Meter: password-strength-meter.js v0.0.1 * ======================================================================== */ !function ($) { "use strict"; // jshint ;_; /* TOOLTIP PUBLIC CLASS DEFINITION * =============...
JavaScript
0
@@ -1329,16 +1329,24 @@ ter_copy +_element )%0A @@ -1432,16 +1432,24 @@ er_label +_element );%0A%0A @@ -1602,37 +1602,21 @@ options. -strength_meter_ copy -s. +_ too_shor @@ -1803,37 +1803,21 @@ options. -strength_meter_ copy -s. +_ app_requ @@ -1824,21 +1824,16 @@ irements -_copy );%0A @@ -2...
8eaf6a0b965fcff9c13ab6f45366063c0c69e19e
Add a comment about only being able to retrive blobs from pending transactions if the blob was stored directly by a transaction.
blobstore.js
blobstore.js
var Web3 = require('web3'); var web3 = new Web3(); web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545')); var blobstoreAbi = require('./blobstore.abi.json'); var blobstoreContract = web3.eth.contract(blobstoreAbi); var blobstoreAddress = '0x8f3fae469b08e48d8e2a692e0b9805c38509231b'; var blobstore =...
JavaScript
0
@@ -1410,24 +1410,101 @@ ransaction.%0A + // This will only work if the blob was stored directly by a transaction.%0A var txid
2efe7f203e6dc8237d38b62fa39171429c72bd56
fix #1598 Pipe '|' symbol breaks YAML Syntax highlighting
lib/ace/mode/yaml_highlight_rules.js
lib/ace/mode/yaml_highlight_rules.js
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2010, Ajax.org B.V. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of so...
JavaScript
0
@@ -3200,17 +3200,23 @@ : '%5B -%5C%5C %7C%3E%5D -%5C%5Cw* +%5B-+%5C%5Cd%5C%5Cs%5D*$ ',%0A
513f1acd89a398a3f3468548076f3fb9fecb8c62
remove called to esphinx
lib/assets/javascripts/esphinx_ui.js
lib/assets/javascripts/esphinx_ui.js
//= require esphinx //= require_tree .
JavaScript
0.000001
@@ -1,24 +1,4 @@ -//= require esphinx%0A //=
b98b5d5cd4f5cabf6492818ba1af48604dadd590
Fix bug: window event handlers sometimes not cleaned up
css3d-simple-resize.js
css3d-simple-resize.js
'use strict'; css3d.prototype.SimpleResize = function (options) { _.defaults(options, { resizable3d: this }); if (this.resizer && this.resizer.resizable3d) this.resizer.destroy(); this.resizer = new SimpleResize(options); this._registeredListeners.push('resizer'); }; var SimpleResize = function (opti...
JavaScript
0.000001
@@ -5759,30 +5759,475 @@ -destroy: function () %7B +killEventHandlers: function () %7B%0A if (css3d.touchIsSupported) %7B%0A window.removeEventListener('touchmove', this.drag);%0A window.removeEventListener('touchmove', this.pinch);%0A window.removeEventListener('touchend',...
13ed70aa4816890db7c0843d73a3347474cf7af9
fix typo
bm-weixin.js
bm-weixin.js
var ns = ns || {}; var _shareCallback = function() {}; var _shareData = { "img_url": '', "link": window.location.href, "desc": '', "title": document.title } // share timeline 取消时返回了 ok var parseRes = function(resp) { if(!resp || !resp.err_msg) return false; var re = resp.err_msg.split(':'); if(!re.l...
JavaScript
0.999991
@@ -2401,23 +2401,19 @@ options. -img_url +pic %E5%9B%BE%E7%89%87%E5%9C%B0%E5%9D%80%0A * @@ -3107,8 +3107,9 @@ true;%0A%7D +%0A
4ed132a8ba5f35de361f22e654ab1aed2118d60b
Update main.js
data/main.js
data/main.js
/*@pjs preload="data/images/logo1.png";*/ var sketchProc=function(processingInstance){ with (processingInstance){ //Setup var wi = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; var he = window.innerHeight || document.documentElement.clientHeight || ...
JavaScript
0.000001
@@ -574,16 +574,29 @@ s = %5B%5D;%0A +%09pages = %5B%5D;%0A %09page =
5ac4a8512d7771bc2256084ce2d4f65e94b6a91d
Add support for MongoDB 2.4.1.
bootstrap.js
bootstrap.js
var mongoose = require('mongoose'); var config = require('config'); var semver = require('semver'); // configure mongodb mongoose.connect(config.mongodb.connectionString || 'mongodb://' + config.mongodb.user + ':' + config.mongodb.password + '@' + config.mongodb.server +'/' + config.mongodb.database); mongoo...
JavaScript
0
@@ -637,17 +637,16 @@ data) %7B - %0A if @@ -692,16 +692,17 @@ ror%22 && +( err.errm @@ -723,16 +723,50 @@ o login' + %7C%7C err.errmsg === 'unauthorized') ) %7B%0A @@ -1359,8 +1359,9 @@ ongoose; +%0A
0b556715a53909e64e4e6da54d44e9f6a58bfb0e
Fix when collection does not exists
multiple-instances-status.js
multiple-instances-status.js
var events = new (Npm.require('events').EventEmitter)(), collectionName = process.env.MULTIPLE_INSTANCES_COLLECTION_NAME || 'instances', defaultPingInterval = (process.env.MULTIPLE_INSTANCES_PING_INTERVAL || 10) * 1000; // default to 10s var Intances = new Meteor.Collection(collectionName); var InstancesRaw = Intan...
JavaScript
0.000001
@@ -210,15 +210,8 @@ 10) - * 1000 ; // @@ -233,16 +233,17 @@ %0A%0Avar In +s tances = @@ -300,24 +300,25 @@ ncesRaw = In +s tances.rawCo @@ -333,26 +333,154 @@ ();%0A -var indexExpire = +%0A// if not set via env var ensures at least 3 ticks before expiring (multiple of 60s)%0Avar indexExpire = process.env.MULT...
45c4ab43f4014a53ccf295be701e79d02ed0be26
Replace expect browser.isElementPresent with utils.waitUntilPresent
client/tests/end2end/test-admin-perform-wizard.js
client/tests/end2end/test-admin-perform-wizard.js
var utils = require('./utils.js'); describe('globaLeaks setup wizard', function() { it('should allow the user to setup the wizard', function() { browser.get('/#/wizard'); // Test language selector switching to italian and then re-switching to english element(by.model('GLTranslate.indirect.appLanguage'))...
JavaScript
0.002221
@@ -376,44 +376,27 @@ -expect(browser.isElementPresent(elem +utils.waitUntilPres ent( @@ -451,29 +451,16 @@ eaks!%22)) -)).toBe(true) ;%0A el @@ -572,44 +572,27 @@ -expect(browser.isElementPresent(elem +utils.waitUntilPres ent( @@ -645,29 +645,16 @@ eaks!%22)) -)).toBe(true) ;%0A%0A e
c12a41b1be8f61900f721f05dd6c6a79f05b89fa
G to 4πG
calc/arch.js
calc/arch.js
var calc = function () { document.body.appendChild(calc.display) document.body.appendChild(calc.keypad) } !function () { var html = {}; ['tr', 'td', 'input', 'div', 'table'].forEach(function (a) { html[a] = function() { return document.createElement(a) } }) Complex.precision = 6 var c = new Complex(Math.log(...
JavaScript
0.997973
@@ -378,16 +378,30 @@ ath.log( +4 * Math.PI * 6.67408e
86919421c2b37d16c55c56d41a7d8f32e17984e7
Extract 'evalNewPipe' function
src/reducers/workspace/evaluationReducer.js
src/reducers/workspace/evaluationReducer.js
import { MAIN_BRICK, PRIMITIVE, SELECTABLE_PIPE } from '../../utils/componentNames' export const evaluate = (workspace, elementId) => { const element = workspace.entities[elementId] let newEntities = workspace.entities let newUnitTests = workspace.unitTests if(element.componentName == SELECTABLE_PIPE) {...
JavaScript
0.999994
@@ -208,32 +208,206 @@ s = -workspace.entities%0A let +%7B%7D%0A let newUnitTests = %7B%7D%0A%0A switch (element.componentName) %7B%0A case SELECTABLE_PIPE:%0A const newWorkspace = evalNewPipe(workspace, element)%0A newEntities = newWorkspace.newEntities%0A new @@ -410,33 +410,36 @@ newUnitTe...
99cb72732038d6d7f655533b1e8755201b080a0b
add a render hook to allow more customizations in subclasses
src/sap.m/src/sap/m/ComboBoxBaseRenderer.js
src/sap.m/src/sap/m/ComboBoxBaseRenderer.js
/*! * ${copyright} */ sap.ui.define(['jquery.sap.global', './InputBaseRenderer', 'sap/ui/core/Renderer'], function(jQuery, InputBaseRenderer, Renderer) { "use strict"; /** * ComboBoxBase renderer. * * @namespace */ var ComboBoxBaseRenderer = Renderer.extend(InputBaseRenderer); /** * CSS clas...
JavaScript
0.000001
@@ -4478,61 +4478,43 @@ %0A%09%09%09 -oRm.addClass(ComboBoxBaseRenderer.CSS_CLASS + %22Arrow%22 +this.addButtonClasses(oRm, oControl );%0A%09 @@ -4874,16 +4874,538 @@ ;%0A%09%09%7D;%0A%0A +%09%09/**%0A%09%09 * Add CSS classes to the combo box arrow button, using the provided %7B@link sap.ui.core.RenderManager%7D.%0A...
4913402064f448e3384ac2889c6f992e457ae2d4
use a process.nextTick shim if necessary/possible
catharsis.js
catharsis.js
/** * catharsis 0.0.1 * A parser for Google Closure Compiler type expressions, powered by PEG.js. * * @author Jeff Williams <jeffrey.l.williams@gmail.com> * @license MIT License (http://opensource.org/licenses/mit-license.php/) */ 'use strict'; var parse = require('./lib/parser').parse; var cache = {}; functi...
JavaScript
0.000001
@@ -176,17 +176,17 @@ License -( +%3C http://o @@ -224,17 +224,17 @@ nse.php/ -) +%3E %0A */%0A%0A'u @@ -424,16 +424,403 @@ ng%5D;%0A%7D%0A%0A +var nextTick = (function() %7B%0A%09if (process && process.nextTick) %7B%0A%09%09return process.nextTick;%0A%09%7D else if (setTimeout) %7B%0A%09%09return function(callba...
7df82d4eb39cde665f8689ff4e236f95271396d7
use post instead of patch
src/services/user/hooks/skipRegistration.js
src/services/user/hooks/skipRegistration.js
const hooks = require('feathers-hooks-common'); const auth = require('@feathersjs/authentication'); const globalHooks = require('../../../hooks'); exports.before = { all: [auth.hooks.authenticate('jwt')], find: [hooks.disallow()], get: [hooks.disallow()], create: [hooks.disallow()], update: [hooks.disallow()], p...
JavaScript
0
@@ -141,16 +141,79 @@ oks');%0A%0A +const testHook = (hook) =%3E %7B%0A%09return Promise.resolve(hook);%0A%7D%0A%0A exports. @@ -330,106 +330,110 @@ e: %5B -hooks.disallow()%5D,%0A%09update: %5Bhooks.disallow()%5D,%0A%09patch: %5B%0A%09%09globalHooks.restrictToCurrentSchool,%0A%09 +testHook, globalHooks.restrictToCu...
631ab06c5c4734df999f36bd9b370f7b5c35531b
clean up
src/shared/components/addon/require-auth.js
src/shared/components/addon/require-auth.js
'use strict' import { Router } from 'react-router' import { sync, checkToken } from 'shared/actions/AuthActions' export default function (nextState, transition) { this.redux.dispatch(sync()) this.redux.dispatch(checkToken()) const isAuthenticated = this.redux.getState().auth.isAuthenticated const verified = t...
JavaScript
0.000001
@@ -650,48 +650,4 @@ )%0A%7D%0A -%0A%0Afunction check (token) %7B%0A return true%0A%7D%0A%0A
68421f85c88b6baadf37e1164fd651750616daa0
fix unneeded fetches
src/web/components/ContentForm/RefWidget.js
src/web/components/ContentForm/RefWidget.js
import React, { Component } from 'react' import { connect } from 'react-redux' import { fetchContentItem } from '~/actions' import ContentPickerWidget from '~/components/Content/Select/Widget' class RefWidget extends Component { state = {} handleChange = item => { this.props.onChange(item.id) } compone...
JavaScript
0.000023
@@ -229,22 +229,8 @@ t %7B%0A - state = %7B%7D%0A%0A ha @@ -352,16 +352,55 @@ ps.value + && newProps.value !== this.props.value ) %7B%0A
2191d1a16aece69d507e1048a530d5301e54e807
Output commonjs for headless
webpack.config.headless.js
webpack.config.headless.js
/** * Copyright (c) 2019 The xterm.js authors. All rights reserved. * @license MIT */ const path = require('path'); /** * This webpack config does a production build for xterm.js. It works by taking the output from tsc * (via `yarn watch` or `yarn prebuild`) which are put into `out/` and webpacks them into a * ...
JavaScript
0.999983
@@ -1021,21 +1021,40 @@ rary -Target: 'umd' +: %7B%0A type: 'commonjs'%0A %7D %0A %7D
788ccff3858e40b18a1c1d529c2c92e0fe8db433
Fix ng2-bootstrap file name to comply with name in the latest npm package.
website/systemjs.config.js
website/systemjs.config.js
/** * System configuration for Angular 2 samples * Adjust as necessary for your application needs. */ (function (global) { System.config({ paths: { // paths serve as alias 'npm:': 'node_modules/' }, // map tells the System loader where to look for things ma...
JavaScript
0
@@ -1373,25 +1373,25 @@ p/bundles/ng -2 +x -bootstrap.u
956f457908fde2eb76359ad59efc756c9a1a188a
test http request on github
workshop/leaflet/script.js
workshop/leaflet/script.js
//initialize the map var map = L.map('map').setView([42.3600825, -71.0588801], 12); //Create baselayer - tiles var backgroundMap = L.tileLayer('http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png', { attribution: '<a href="http://openstreetmap.org">OpenStreetMap</a>contributors, <a href="http://creativecommons...
JavaScript
0
@@ -2020,19 +2020,16 @@ (map);%0A%0A -// // new H @@ -2040,19 +2040,16 @@ Request%0A -// var xhtt @@ -2075,19 +2075,16 @@ est();%0A%0A -// // set t @@ -2115,19 +2115,16 @@ he data%0A -// xhttp.op @@ -2182,19 +2182,16 @@ n%22 ));%0A%0A -// //specif @@ -2272,19 +2272,16 @@ cesfull%0A -// xhttp.on @@ -23...
4d41a04810b48ae4fedc57bdc1e9201fcd6745ca
fix copying of documents with images
fiduswriter/document/static/js/modules/importer/get_images.js
fiduswriter/document/static/js/modules/importer/get_images.js
import {get} from "../common" export class GetImages { constructor(images, entries) { this.images = images this.imageEntries = Object.values(this.images) this.entries = entries this.counter = 0 } init() { if (this.entries.length > 0) { if (this.entries[0...
JavaScript
0.000001
@@ -1392,32 +1392,42 @@ ry.filename === +%60images/$%7B this.imageEntrie @@ -1464,16 +1464,18 @@ ').pop() +%7D%60 %0A
6c447a7766d8b1b7f064b2e8260a50bce9f4cb1e
Simplify getPrihlaseniSorted().
ui/src/registrator/Prihlaseni/prihlaseniReducer.js
ui/src/registrator/Prihlaseni/prihlaseniReducer.js
import { AKTUALNI_ROK } from '../../constants'; import { narozeniToStr, reverseSortDirType, SortDirTypes } from '../../Util'; import { csStringSortMethod, narozeniSortMethod, prijmeniJmenoNarozeniSortMethod } from '../../entities/ucastnici/ucastniciReducer'; import { predepsaneStartovneCommon, provedenePlatby } f...
JavaScript
0.000001
@@ -1470,250 +1470,8 @@ r;%0A%0A -const expandedPrihlaska = (prihlaska, kategorie) =%3E %7B%0A if (!prihlaska) %7B%0A return %7B%7D;%0A %7D%0A%0A const %7B datum, kategorie: kategorieId, startCislo, kod %7D = prihlaska;%0A return %7B datum, kategorie: kategorie%5BkategorieId%5D, startCislo, kod %7D;%0A%7D;%0A%0...
872ba06a7b9c4a9507611542c6c7b3b7a7394df8
Fix whitespace.
test/fixture/basic.js
test/fixture/basic.js
/** * @fileoverview sample file. */ goog.provide('my.app.Sample'); goog.require('goog.ui.Component'); /** * @param {goog.dom.DomHelper=} opt_domHelper * @constructor * @extends {goog.ui.Component} */ my.app.Sample = function(opt_domHelper) { goog.base(this, opt_domHelper); /** * @type {number} * @p...
JavaScript
0.99988
@@ -31,17 +31,16 @@ le.%0A */%0A -%0A goog.pro
0832833af298480b2ff563d3fececedebdeb08da
Clarify tests.
test/strategy.test.js
test/strategy.test.js
/* global describe, it, expect, before */ /* jshint expr: true */ var chai = require('chai') , FacebookStrategy = require('../lib/strategy'); describe('Strategy', function() { var strategy = new FacebookStrategy({ clientID: 'ABC123', clientSecret: 'secret' }, function() {}); it('s...
JavaScript
0.000001
@@ -179,16 +179,57 @@ %7B%0A %0A + describe('constructed', function() %7B%0A var st @@ -262,24 +262,26 @@ egy(%7B%0A + + clientID: 'A @@ -288,16 +288,18 @@ BC123',%0A + cl @@ -327,11 +327,15 @@ + %7D,%0A + @@ -355,16 +355,18 @@ );%0A %0A + it('sh @@ -399,24 +399,...
df8c124468ac206a6d9d00613161c574f7c40126
Fix default Intl polyfill language (#1208)
internals/templates/app.js
internals/templates/app.js
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; /* eslint-disable import/no-unresolved, import/extensions */ // Load the manifest.json file and the .htaccess file import '!file?name=[name].[ext]!./manifest.json'; import 'file?name=[name]....
JavaScript
0
@@ -2887,18 +2887,18 @@ a/jsonp/ -d e +n .js'),%0A
d06939ef9af027031be3a40dc29483dd8fa763cf
switch to Ionicons
source/views/sis/components/searchbar/index.android.js
source/views/sis/components/searchbar/index.android.js
// @flow import * as React from 'react' import {StyleSheet} from 'react-native' import * as c from '../../../components/colors' // import SearchBar from 'react-native-material-design-searchbar' import SearchBar from 'react-native-searchbar' import Icon from 'react-native-vector-icons/MaterialIcons' const iconStyles =...
JavaScript
0.000034
@@ -283,17 +283,12 @@ ons/ -MaterialI +Ioni cons @@ -394,16 +394,19 @@ n name=%22 +md- search%22 @@ -471,16 +471,19 @@ n name=%22 +md- arrow-ba
2d96a40f62214fcc7caba6243a14693d0521d2dc
Fix template tests.
test/template.spec.js
test/template.spec.js
import { expect } from 'chai'; import renderTemplate, { init as initTemplates } from '../lib/template'; import { readFile } from '../lib/util'; describe('template', () => { describe('render', () => { it('should render template to HTML', () => { initTemplates('test/samples'); let result = renderTemplate('tes...
JavaScript
0
@@ -261,16 +261,23 @@ mplates( +%7Broot: 'test/sa @@ -282,16 +282,17 @@ samples' +%7D );%0A%09%09%09le @@ -322,29 +322,16 @@ te(' -test/samples/ template .ect @@ -330,12 +330,8 @@ late -.ect ', %7B
2ee988241b5f313cdd315ff127c341eed2633cd6
increase version
sample/src/about/about.js
sample/src/about/about.js
export class About { actors = [ { 'name': 'Bryan Cranston', 'episodes': 62, 'description': 'Bryan Cranston played the role of Walter in Breaking Bad. He is also known for playing Hal in Malcom in the Middle.', 'image': 'bryan-cranston.jpg' }, { 'name': 'Aaron Paul', 'episod...
JavaScript
0.000004
@@ -926,17 +926,17 @@ = '0.20. -2 +3 ';%0A %7D%0A%0A
52fbc1d694e0a89e2f06ff9d70f34f53e896a25f
set viewbox attr of svg; also set forceX and forceY for simulation ==> better viz for large graphs
frontend/src/render.js
frontend/src/render.js
import * as d3 from "d3"; // avoid divide-by-zero errors const EPSILON = 0.000001; // circle dimensions const MIN_RADIUS = 5; const MAX_RADIUS = 20; const LINK_DISTANCE = 70; const CHARGE = -250; const ALPHA = 0.3; class SchemaRenderer { constructor(data) { this.nodes = data.nodes; this.links = data.links; ...
JavaScript
0
@@ -147,34 +147,8 @@ 20;%0A -const LINK_DISTANCE = 70;%0A cons @@ -338,16 +338,173 @@ (%22svg%22); +%0A const %7B width, height %7D = svg.node().getBoundingClientRect();%0A // set the view box%0A svg.attr(%22viewBox%22, %5B-width / 2, -height / 2, width, height%5D); %0A%0A co @@ -598,27 +598,16 @@ ...
f97b6397872ecb48ac56e703b8e6ad9c0464403c
add replace_microseconds parameter (#2121)
composer/functions/composer-storage-trigger/index.js
composer/functions/composer-storage-trigger/index.js
/** * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
JavaScript
0
@@ -1825,16 +1825,47 @@ fy(data) +, replace_microseconds: 'false' %7D;%0A%0A //
ea6803238d80a91cbb6dd92892b525a307885dc3
Use AutoSizedWindow.
src/devilry/devilry/apps/extjshelpers/static/extjs_classes/extjshelpers/HelpWindow.js
src/devilry/devilry/apps/extjshelpers/static/extjs_classes/extjshelpers/HelpWindow.js
Ext.define('devilry.extjshelpers.HelpWindow', { extend: 'Ext.window.Window', alias: 'widget.helpwindow', modal: true, layout: 'fit', width: 800, height: 600, closable: false, // To easy to double click and close an undelying window helptpl: Ext.create('Ext.XTemplate', '<div class="secti...
JavaScript
0
@@ -58,19 +58,38 @@ d: ' -Ext.window. +devilry.extjshelpers.AutoSized Wind
bd07426742a9e5fd5688cbf3dff4f17c639c5594
simplify hqModules code slightly
corehq/apps/hqwebapp/static/hqwebapp/js/hqModules.js
corehq/apps/hqwebapp/static/hqwebapp/js/hqModules.js
/* * hqModules provides a poor man's module system for js. It is not a module *loader*, * only a module *referencer*: "importing" a module doesn't automatically load it as * a script to the page; it must already have been loaded with an explict script tag. * * Modules MUST have a name, and SHOULD be given then nam...
JavaScript
0.000004
@@ -1379,38 +1379,8 @@ s = -%5B'COMMCAREHQ_MODULES'%5D.concat( path @@ -1382,33 +1382,32 @@ path.split('/') -) ;%0A var i;%0A @@ -1412,38 +1412,50 @@ var object = -window +COMMCAREHQ_MODULES ;%0A for (i = 0 @@ -1866,38 +1866,8 @@ s = -%5B'COMMCAREHQ_MODULES'%5D.concat( path @@ -1877,17 +1877,16 ...
9e4a3c5d4836accf163e0cb8757960b6bcfc0a6d
Allow schema and editorAttrs overwritten by html data-* nodes
tornado_backbone/static/tbf.js
tornado_backbone/static/tbf.js
/** * User: Martin Martimeo * Date: 13.08.13 * Time: 18:30 * * Extension to backbone_forms */ require(["jquery", "underscore", "backbone", "backbone_forms"],function ($, _, Backbone, BackboneForm) { var self = this.Tornado || {}; var Tornado = this.Tornado = self; Tornado.BackboneForm = function (el...
JavaScript
0
@@ -2360,45 +2360,496 @@ -$container.append(field.render().el); +field.schema = field.schema %7C%7C %7B%7D;%0A field.schema = _.extend(field.schema, $container.data(%22schema%22));%0A%0A var $el = $container.append(field.render().el);%0A%0A // Update editor Attrs%0A ...