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
35e4ae87207a5e0d546c4b9c4298c7a84be81244
Update patient_detail.js
opal/static/js/opal/controllers/patient_detail.js
opal/static/js/opal/controllers/patient_detail.js
angular.module('opal.controllers').controller( 'PatientDetailCtrl', function( $rootScope, $scope, $modal, $location, $routeParams, Flow, Item, RecordEditor, patient, options, profile ){ $scope.profile = profile; $scope.patient = patient; $scope.options = optio...
JavaScript
0.000002
@@ -163,30 +163,8 @@ tem, - RecordEditor,%0A pat
5964813dc609e1337f3b45294b528dc94c8ae37b
Delete comment lines
src/main/webapp/react_ui/src/assets/js/trip.js
src/main/webapp/react_ui/src/assets/js/trip.js
'use strict'; /* eslint-disable no-unused-vars */ /** Initialize the Map View */ function initMap() { // Example: trip.html?locations=48.13237830000001,11.5865944*48.14127879999999,11.5652331*48.1472299,11.5737519*48.1376098,11.5799253*48.17315919999999,11.5466036*48.13237830000001,11.5865944 const urlParameters =...
JavaScript
0.000001
@@ -3058,503 +3058,8 @@ ue;%0A - // // If first entry with this name%0A // if (typeof query_string%5Bkey%5D === %22undefined%22) %7B%0A%0A // query_string%5Bkey%5D = decodeURIComponent(value);%0A // // If second entry with this name%0A // %7D else if (typeof query_string%5Bkey%5D === %22string%22) %...
f029fbc93e18d76218b93e34d0ec209e0d693f8c
Fix MapBox tiles
taxi-ride.js
taxi-ride.js
var map; var mapboxLayer = L.tileLayer("https://{s}.tiles.mapbox.com/v3/examples.map-zr0njcqy/{z}/{x}/{y}.png", { attribution: 'Tiles courtesy of <a href="http://www.mapbox.com/" target="_blank">MapBox</a>. Map data (c) <a href="http://www.openstreetmap.org/" target="_blank">OpenStreetMap</a> contributors, CC-BY-S...
JavaScript
0
@@ -37,17 +37,17 @@ yer( -%22 +' https:// %7Bs%7D. @@ -46,17 +46,11 @@ s:// -%7Bs%7D.tiles +api .map @@ -61,260 +61,416 @@ com/ -v3/examples.map-zr0njcqy/%7Bz%7D/%7Bx%7D/%7By%7D.png%22, %7B%0A attribution: 'Tiles courtesy of %3Ca href=%22http://www.mapbox.com/%22 target=%22_blank%22%3EMapBox%3C/a%3E. Map data ...
76516df8c11c0c00aa9ee779782a1fe453b2fd3f
Add mkdir
app/index.js
app/index.js
'use strict'; var util = require('util'); var yeoman = require('yeoman-generator'); var SiteGenerator = module.exports = function SiteGenerator(args, options, config) { yeoman.generators.Base.apply(this, arguments); this.on('end', function () { // http://stackoverflow.com/questions/22361446/yeoman-generator-i...
JavaScript
0.000003
@@ -2740,24 +2740,69 @@ ommon/js');%0A + this.mkdir('htdocs/common/js/components');%0A this.mkdir
55c64a3e3b14c174bde6b9822e02713209797cc7
Revert commented-out gdt installation.
app/index.js
app/index.js
'use strict'; var yeoman = require('yeoman-generator'); var chalk = require('chalk'); var yosay = require('yosay'); var path = require('path'); var _ = require('lodash'); var options = {}; module.exports = yeoman.generators.Base.extend({ initializing: function () { if (!this.options.skipWelcome) { this.l...
JavaScript
0
@@ -1123,18 +1123,16 @@ ) %7B%0A -// require(
eeb51d733a03a84f75497a9569c3970f4abcc1c0
remove unused require
app/index.js
app/index.js
'use strict'; var chalk = require('chalk'); var util = require('util'); var path = require('path'); var npmName = require('npm-name'); var yeoman = require('yeoman-generator'); var npmLatest = require('npm-latest'); var scriptBase = require('../script-base'); var NodeGenerator = module.exports = function NodeGenerato...
JavaScript
0.000001
@@ -133,50 +133,8 @@ ');%0A -var yeoman = require('yeoman-generator');%0A var
8a3aa4dd919813ba990244a77d0e191c321d48e0
Move the throttle function outside of the lifecycle method
components/popover/Popover.js
components/popover/Popover.js
import React, { PureComponent } from 'react'; import { createPortal } from 'react-dom'; import PropTypes from 'prop-types'; import cx from 'classnames'; import throttle from 'lodash.throttle'; import InjectOverlay from '../overlay'; import Transition from 'react-transition-group/Transition'; import ReactResizeDetector ...
JavaScript
0.000001
@@ -867,78 +867,8 @@ );%0A%0A - this.setPlacementThrottled = throttle(this.setPlacement, 250);%0A%0A @@ -1162,24 +1162,25 @@ ,%0A %7D);%0A +%0A docume @@ -1658,24 +1658,87 @@ %7D%0A %7D;%0A%0A + setPlacementThrottled = throttle(this.setPlacement, 250);%0A%0A render()
588f4a3ea342a1c0b5e3907f6a3b9c2e76c53bec
fix default mongo url
app/index.js
app/index.js
var MONGO_URL = process.env.MONGO_URL || 'mongodb://localhost:27017/ideahive'; var mongoose = require('mongoose'); mongoose.connect(MONGO_URL); var path = require('path'); var express = require('express'); var app = express(); var bodyParser = require('body-parser'); app.use(bodyParser.json()); var publicDir = path....
JavaScript
0.000005
@@ -65,16 +65,14 @@ 017/ -ideahive +poffer ';%0Av
9399d4ab6220ab6d7919292c0f4f588790f9758f
Secure redirect handling.
data-registry-webapp/src/main/webapp/js/login.js
data-registry-webapp/src/main/webapp/js/login.js
$(document).ready(function() { getLoginLink(); }); function getLoginLink() { var login = function(e) { e.preventDefault(); var username = $('#username').val(); var password = $('#password').val(); var doLogin = function(url) { $.ajax({ type: 'POST', url: url, ...
JavaScript
0.00001
@@ -240,20 +240,36 @@ tion(url +, secureRedirect ) %7B%0A - %09 @@ -480,36 +480,238 @@ %7B%0A%09 - +%09if (secureRedirect) %7B%0A%09 %09%09window.location.href = _.template(%0A%09 %09%09%09%09'https://%3C%25=hostname+pathname%25%3E',%0A%09 %09%09%09window...
24cf21112c54897ca5af843e9eaaf89a2315fb5a
Test for popping top nav window without animation.
demos/KitchenSink/Resources/examples/navgroup.js
demos/KitchenSink/Resources/examples/navgroup.js
// by default the modal window has a nav bar // since we're embedding a navgroup inside the modal // window which also has a nav bar, we ask him to hide it var open = Ti.UI.createButton({ title:'Open nav group', top:150, width:200, height:40 }); open.addEventListener('click', function() { modal.open({modal:true})...
JavaScript
0
@@ -997,14 +997,22 @@ le:' -button +Back (no anim) ',%0A%09 @@ -1065,24 +1065,104 @@ RDERED%0A%09%7D);%0A +%09b.addEventListener('click', function() %7B%0A%09%09nav.close(w,%7Banimated:false%7D);%0A%09%7D);%0A %09var w = Ti.
b05e3d7f8028c2c26e04ef8ea32243e88767a104
Bump angular2-compilers deps' versions
atmosphere-packages/angular2-compilers/package.js
atmosphere-packages/angular2-compilers/package.js
Package.describe({ name: 'angular2-compilers', version: '0.6.6', summary: 'Angular 2 Templates, HTML and TypeScript compilers for Meteor', git: 'https://github.com/Urigo/angular2-meteor/', documentation: 'README.md' }); Package.registerBuildPlugin({ name: 'Angular2 Compilers', sources: [ 'plugin/regi...
JavaScript
0
@@ -494,11 +494,11 @@ r@0. -3.6 +4.1 '%0A @@ -800,10 +800,12 @@ t@0. -5. +6.2_ 2',%0A
a0326e71bfb659eebf8916a0e3145dbd015f2ae9
update psychtest result data
dionysus-client/yo/app/scripts/hal/psychtests.js
dionysus-client/yo/app/scripts/hal/psychtests.js
Dionysus.module('Domain', function(Domain, Dionysus, Backbone, Marionette, $) { 'use strict'; var PsychTestQuestion = Backbone.RelationalHalResource.extend({ urlRoot: '/api/v1/psychtestquestions' }); var PsychTest = Backbone.RelationalHalResource.extend({ urlRoot: '/api/v1/psychtests', halEmbedded...
JavaScript
0
@@ -1767,32 +1767,44 @@ );%0A %7D%0A %7D);%0A%0A +%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A var PsychTestS @@ -2098,16 +2098,325 @@ %7D);%0A%0A%0A +%0A%0A var PsychTestQuestionResult = Backbone.RelationalHalResource.extend(%7B%7D);%0A%0A var PsychTestResult = Backbone.RelationalHalResource.extend(%7B%0A url ...
dea9129826333bee0d65d0d105cf94fd899f5771
Put back changes in observer after unsuccessful commit.
static/js/tests/topic-observer.test.js
static/js/tests/topic-observer.test.js
const expect = require('chai').expect; import { TopicObserver } from "../topic-observer"; describe('topic observer', () => { const observer = new TopicObserver(); const fn1 = () => {}; it('should observe all', function() { observer.observe(fn1); expect(observer.observers['__all__'].leng...
JavaScript
0
@@ -888,37 +888,35 @@ expect(observer. -match +has Topic('topic')). @@ -1052,37 +1052,35 @@ expect(observer. -match +has Topic('topic')).
4e4d28ddcf5277686fa5d345a4c7ada665322bbf
Fix node path so command doesn't see it as a switch
Build/Scripts/BuildCommon.js
Build/Scripts/BuildCommon.js
var fs = require('fs-extra'); var os = require('os'); var path = require("path"); var host = require("./Host"); var atomicRoot = host.atomicRoot; var glob = require('glob'); var Tslint = require("tslint"); namespace('build', function() { // Linting task task('lint_typescript', { async: true }, function(f...
JavaScript
0.000003
@@ -1883,16 +1883,32 @@ %22win32%22: + %0A @@ -1933,22 +1933,25 @@ uild -/ +%5C%5C Windows -/ +%5C%5C node -/ +%5C%5C node
99d2c54a2e73f0f9eed8f96da8e81ebc47739635
Changed the term back to fall
backend/scrapers/classes/processors/semesterly.js
backend/scrapers/classes/processors/semesterly.js
import _ from 'lodash'; import fs from 'fs-promise'; import macros from '../../../macros'; import Section from '../../../../common/classModels/Section' // Dumps the data in the semester.ly schema class Semesterly { main(dump) { let result = [] let meetings = [] let subjectMap = {} for (let ...
JavaScript
0.999195
@@ -3135,30 +3135,22 @@ term: -section.termId +'Fall' ,%0A @@ -4028,30 +4028,22 @@ term: -section.termId +'Fall' %0A %7D
4853ad198b69c9b80f2d39ca4d756c85ad0a9bd5
Update http ingress example
node/examples/http_ingress.js
node/examples/http_ingress.js
// Copyright (c) 2015 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
JavaScript
0
@@ -2999,13 +2999,42 @@ , outres +, function() %7B return true; %7D );%0A%7D%0A
0c2216a732a810b4a958df243b53c90d28749bb2
Remove Console.log statements in client.
nodejs/public/js/ui.layout.js
nodejs/public/js/ui.layout.js
UI.once('init', function(){ var c = $('#chat'), hide_userlist_at = 650, layout_delay = 200, narrow_at = 800, resizeTimer; setTimeout(doLayout, 1000); $(window).resize(function(){ clearTimeout(resizeTimer); resizeTimer = setTimeout(onResize, layout_delay); }); function doLayout(){ var w = c.width();...
JavaScript
0
@@ -525,163 +525,8 @@ ();%0A -%09%09console.log(%22Taller?: %22 + taller);%0A%09%09console.log(%22Body: %22 + $('body').height() + %22 Window:%22 + $(window).height() + %22 HTML:%22 + $('html').height());%0A %09%09$(
af3f3c40ea47bddc00f0646f34e7d3bf9ac0f4c6
throw an exception so Mocha is happy, too
tst/core/binding-3-parser.js
tst/core/binding-3-parser.js
/* ** BindingJS -- View Data Binding for JavaScript <http://bindingjs.com> ** Copyright (c) 2014 Ralf S. Engelschall <http://engelschall.com> ** ** This Source Code Form is subject to the terms of the Mozilla Public ** License (MPL), version 2.0. If a copy of the MPL was not distributed ** with this file, You can ...
JavaScript
0
@@ -1120,28 +1120,52 @@ -console.log( +throw new Error(%22PARSING FAILED%5Cn%22 + %0A
8bd68e0f107cc241c17ea02b8a2eeeb3fcbc3ecf
Create indexeddb worker when starting the store
src/store/indexeddb-remote-backend.js
src/store/indexeddb-remote-backend.js
/* Copyright 2017 Vector Creations Ltd 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 required by applicable law or agreed to in writing, sof...
JavaScript
0
@@ -1181,24 +1181,63 @@ kerApi,%0A) %7B%0A + this._workerScript = workerScript;%0A this._db @@ -1271,14 +1271,13 @@ rker - = new +Api = Wor @@ -1286,22 +1286,33 @@ rApi -(workerScript) +;%0A this._worker = null ;%0A @@ -1453,247 +1453,37 @@ %7D;%0A -%0A this._worker.onmessage = this._onWorkerMes...
0c163de64c211923c5a72ed5b264253aa4203e09
Clear video feed without triggering extra request
RightpointLabs.Pourcast.Web/Scripts/app/camera.js
RightpointLabs.Pourcast.Web/Scripts/app/camera.js
define('app/camera', ['app/events', 'jquery'], function (events, $) { if (window.location.href.indexOf("camera=true") < 0) return; function getVideoStream() { var d = $.Deferred(); navigator.webkitGetUserMedia({ video: true }, function (s) { d.resolve(s); }, functi...
JavaScript
0
@@ -2726,20 +2726,18 @@ v.src = -null +'' ;%0A
c5c970d9fe40c1ff56ec9ea92e8d3a5bd5576ac8
Update M.ViewManager.currentPage property when a TabBarView switches page.
modules/ui/tab_bar_item.js
modules/ui/tab_bar_item.js
// ========================================================================== // Project: The M-Project - Mobile HTML5 Application Framework // Copyright: (c) 2010 M-Way Solutions GmbH. All rights reserved. // (c) 2011 panacoda GmbH. All rights reserved. // Creator: Dominik // Date: 16.11.2010 ...
JavaScript
0
@@ -2827,24 +2827,98 @@ is.page) %7B%0D%0A + %09M.ViewManager.setCurrentPage(M.ViewManager.getPage(this.page));%0D%0A
fbaef10deaaf08591c8200d81ca244ebfab96309
add back in signup route (#1164)
imports/pages/index.js
imports/pages/index.js
import Util from "./_"; import Give from "./give"; import Groups from "./groups"; import Celebrate from "./celebrate"; import Profile from "./profile"; if (process.env.NATIVE) { import Articles from "./articles"; import Devotionals from "./devotionals"; import Discover from "./discover"; import Music from "./m...
JavaScript
0
@@ -144,16 +144,47 @@ rofile%22; +%0Aimport Signup from %22./signup%22; %0A%0Aif (pr @@ -952,16 +952,31 @@ .concat( +Signup.Routes, Util.Rou
ab70fdf83a5bd3f33816beddd8a1c0164503bdc1
fix usage of most.js in tests
most-adapter/test/index.js
most-adapter/test/index.js
import {describe, it} from 'mocha' import assert from 'power-assert' import MostAdapter from '../lib/index' import most from 'most' describe('MostAdapter', () => { it('should conform to StreamLibrary interface', () => { assert.strictEqual(typeof MostAdapter, 'object') assert.strictEqual(typeof MostAdapter.ad...
JavaScript
0.000008
@@ -108,16 +108,21 @@ %0Aimport +* as most fro
b988d6f0981bdf5b59562efe2357aff656ae7d62
Add missing comma to GlobalHook.js injected script
injected/GlobalHook.js
injected/GlobalHook.js
// Inject a `__REACT_DEVTOOLS_GLOBAL_HOOK__` global so that React can detect that the // devtools are installed (and skip its suggestion to install the devtools). var js = ( "Object.defineProperty(" + "window, '__REACT_DEVTOOLS_GLOBAL_HOOK__', {value: {" + "inject: function(runtime) { this._reactRuntime = r...
JavaScript
0.000001
@@ -322,16 +322,17 @@ ntime; %7D +, %22 +%0A
b08afa3402a07097f493e52231e423e71c50e9a6
remove @private from public method
plugins/gui/frontend/gosa/source/class/gosa/Tools.js
plugins/gui/frontend/gosa/source/class/gosa/Tools.js
/*======================================================================== This file is part of the GOsa project - http://gosa-project.org Copyright: (C) 2010-2017 GONICUS GmbH, Germany, http://www.gonicus.de License: LGPL-2.1: http://www.gnu.org/licenses/lgpl-2.1.html See the LICENSE file ...
JavaScript
0
@@ -1869,24 +1869,8 @@ ode%0A - * @private%0A
b7c1d6e585d7465ee89042163f89dfd17aeb961e
Add loadRelationShips for rating_calculation.
models/rating_calculation.js
models/rating_calculation.js
/* * This file is part of SYZOJ. * * Copyright (c) 2017 t123yh <t123yh@outlook.com> * * SYZOJ is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your...
JavaScript
0
@@ -850,16 +850,56 @@ 'user'); +%0Aconst Contest = syzoj.model('contest'); %0A%0Alet mo @@ -1768,24 +1768,125 @@ tem;%0A %7D%0A%0A + async loadRelationShips() %7B%0A this.contest = await Contest.fromID(this.contest_id);%0A %7D%0A%0A getModel
cf209d8b1656dff39b3cf90fd2e19b3f4bc0efec
Rename some stuff and add locations
models/specialoffer_model.js
models/specialoffer_model.js
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var ObjectId = mongoose.Schema.Types.ObjectId; var Mixed = mongoose.Schema.Types.Mixed; var SpecialofferSchema = new Schema({ name: { type: String, unique: true, index: true, set: toLower }, img: String, description: String, // Short des...
JavaScript
0
@@ -159,16 +159,61 @@ Mixed;%0A%0A +var Location = require(%22./location_model%22);%0A%0A var Spec @@ -296,22 +296,8 @@ true -, set: toLower %7D,%0A @@ -381,16 +381,31 @@ ge body%0A +%09link: String,%0A %09partner @@ -427,18 +427,12 @@ ner_ -product_id +code : St @@ -442,58 +442,58 @@ g,%0A%09 -urlid: %7B typ...
ae2b2fe383deab73d4d24e65691554f0c679a7b7
set test host from localhost to 127.0.0.1
build/tasks/custom/runtest.js
build/tasks/custom/runtest.js
const NwBuilder = require( "nw-builder" ); const cdpConnect = require( "../common/cdp/connect" ); const cdpQUnit = require( "../common/cdp/qunit" ); const cdpCoverage = require( "../common/cdp/coverage" ); const nwjsTaskOptions = require( "../configs/nwjs" ).options; const platforms = require( "../common/platforms" );...
JavaScript
0.000013
@@ -592,17 +592,17 @@ t: %22 -localhost +127.0.0.1 %22,%0A%09
75646030c1dd3688ec68de753bc4c4cf5610dcc2
Fix colorguard warning parsing regexp
src/rules/no-indistinguishable-colors/index.js
src/rules/no-indistinguishable-colors/index.js
import colorguard from "colorguard" import { isArray, isNumber } from "lodash" import Result from "postcss/lib/result" import { isValidHex, report, ruleMessages, validateOptions, } from "../../utils" export const ruleName = "no-indistinguishable-colors" export const messages = ruleMessages(ruleName, { rejec...
JavaScript
0.000005
@@ -1371,19 +1371,18 @@ atch(/%5E( -%5CS+ +.* ) collid @@ -1394,12 +1394,14 @@ th ( -%5CS+) +.*) %5C( /).s
80be7089de3d2a7ed232aa740c483ea16a1c0ee2
Fix translation orga name (#297)
packages/components/containers/organization/OrganizationSection.js
packages/components/containers/organization/OrganizationSection.js
import React from 'react'; import { c } from 'ttag'; import { SubTitle, Alert, Row, Loader, Field, Label, SmallButton, useModals, useOrganization } from 'react-components'; import RestoreAdministratorPrivileges from './RestoreAdministratorPrivileges'; import OrganizationNameModal from './OrganizationNameModal'; import...
JavaScript
0
@@ -1225,33 +1225,16 @@ ('Info') -%0A .t%60The n @@ -1286,40 +1286,23 @@ ile -logged in at mail.protonmail.com +they are logged .%60%7D%3C
622080bc2ffa5a7093a40cd3e76daed23177907e
Update profile.js
source/profile.js
source/profile.js
var Profile = { avatar: function (user, height) { return '<img src="http://play.pokemonshowdown.com/sprites/trainers/' + user.avatar + '.png' + '" align="left" height="' + height + '">'; }, customAvatar: function (user, height) { return '<img src="http://192.184.93.98:8000/avatars/' + user.avatar + '" ali...
JavaScript
0.000001
@@ -778,17 +778,16 @@ user) %7B%0A - %09%09io.std @@ -823,17 +823,16 @@ 'elo');%0A - %09%09if (us @@ -847,32 +847,12 @@ == 0 - %7C%7C isNaN(user.elo) ) %7B%0A - %09%09%09u @@ -871,15 +871,12 @@ 00;%0A - %09%09%7D%0A - %09%09re @@ -933,18 +933,16 @@ %3Cbr/%3E';%0A - %09%7D,%0A%0A%09vi
bde1f8023a24573ee5b05dccaee8cba53ba658cc
Support changing mapStyle in standalone bundle (#4886)
modules/core/bundle/deckgl.js
modules/core/bundle/deckgl.js
/* global window, document */ /* eslint-disable max-statements */ import Mapbox from 'react-map-gl/dist/esm/mapbox/mapbox'; import {Deck} from '../src'; const CANVAS_STYLE = { position: 'absolute', left: 0, top: 0, width: '100%', height: '100%' }; // Create canvas elements for map and deck function createC...
JavaScript
0
@@ -2955,24 +2955,121 @@ ender;%0A %7D +%0A if ('mapStyle' in props && this._map) %7B%0A this._map._map.setStyle(props.mapStyle);%0A %7D %0A%0A super.
0fe7ab24b0d6567ac7f96599fb000059d5f4782a
Amazon return page with hazmat label would be blank
modules/com_amazon/js/pwm.js
modules/com_amazon/js/pwm.js
( function() { 'use strict'; var $pageFirstChild = document.body; const $$elementsToShow = document.querySelectorAll( '#pageContentContainer img:not( [src*="loading"] ), #pageContentContainer table' ); for ( let i = 0, l = $$elementsToShow.length; i < l; i++ ) { const $$elementToWhitelist = $$elementsToS...
JavaScript
0.999985
@@ -271,20 +271,18 @@ ) %7B%0A -cons +le t $$elem @@ -354,107 +354,266 @@ -if ( $$elementToWhitelist ) %7B%0A $$elementToWhitelist.classList.add( 'pwmExtensionWhitelisted' ) +while ( $$elementToWhitelist ) %7B%0A if ( $$elementToWhitelist.id === 'pageContentContainer' ) %7B%0A break;%0A ...
57bfc19fd12e7431582930289a45100077a03054
remove console logs
javascripts/app.js
javascripts/app.js
// $(document).ready(function (){ // var refreshID = setInterval(function(){ // var currentHoleSize = 1.9; // var volume = 100; // var scrollPosition = $(document).scrollTop(); // currentHoleSize = Math.max(1.9 - scrollPosition/190, 0.5); // volume = 100 - $(document).scrollTop()/7; // $('#pag...
JavaScript
0.000002
@@ -756,37 +756,8 @@ ();%0A - console.log(windowHeight);%0A $( @@ -3197,66 +3197,8 @@ 5);%0A - console.log(newMargin);%0A console.log(marginBound);%0A @@ -3812,38 +3812,8 @@ 4);%0A - console.log(newMargin);%0A
eabc6f8e40d63347e076f78e54505f5bbd9f58f3
Allow logger to take opts
util/logger.js
util/logger.js
// logger middleware var bunyan = require('bunyan'); var uuid = require('node-uuid'); function toResponseTime(time) { var diff = process.hrtime(time); return (diff[0] * 1000) + (diff[1] / 1000000); } // heavily borrowed from https://github.com/villadora/express-bunyan-logger/blob/master/index.js // but trimme...
JavaScript
0
@@ -354,28 +354,32 @@ = function( +opts ) %7B%0A - if (proc @@ -515,84 +515,162 @@ -var opts = %7B%0A +opts = opts %7C%7C %7B %7D;%0A opts.name = opts. name -: +%7C%7C %22SIS%22 -, +; %0A - serializers : %7B%0A +opts.serializers = opts.serializers %7C%7C %7B %7D;%0A o...
85df5d18b8746921cb84a1186737988e4eb70061
Use 'var' because 'var' is good to use.
nodyn-verticle/src/test/javascript/eventsSpec.js
nodyn-verticle/src/test/javascript/eventsSpec.js
var helper = require('specHelper'); EventEmitter = require('events').EventEmitter; describe('events module', function() { beforeEach(function() { EventEmitter.prototype.removeAllListeners('ding'); }); it('should pass testOnEvent', function() { var x = 0; var func = function() { x = x+1; }; Even...
JavaScript
0.002179
@@ -29,16 +29,20 @@ lper');%0A +var EventEmi
25a65000ffd4aa6b83ce62e4e191b116ef974c89
Fix closing wrapper update after successfull unwrapping
frontend/imports/ui/client/widgets/wrapper-update.js
frontend/imports/ui/client/widgets/wrapper-update.js
import { Template } from 'meteor/templating'; import { Session } from 'meteor/session'; import { web3Obj } from 'meteor/makerotc:dapple'; import Transactions from '/imports/api/transactions'; import { formatError } from '/imports/utils/functions'; import './progress-bar.js'; import './wrapper-update.html'; const TRAN...
JavaScript
0
@@ -1792,38 +1792,394 @@ -$('#wrapperUpdate').modal('hid +/**%0A * Nasty workaround because $('#wrapperUpdate').modal('hide') not working on surge.%0A * Even invoked within dev console it's still not closing the modal.%0A * @type %7B*%7D%0A ...
441b9f067f287b921c492dbd9c2a761ee59e4354
Fix PR review
packages/strapi-admin/admin/src/containers/Roles/EditPage/index.js
packages/strapi-admin/admin/src/containers/Roles/EditPage/index.js
import React from 'react'; import { useRouteMatch, useHistory } from 'react-router-dom'; import { useGlobalContext, request } from 'strapi-helper-plugin'; import { Header } from '@buffetjs/custom'; import { Padded } from '@buffetjs/core'; import { Formik } from 'formik'; import { useIntl } from 'react-intl'; import Ro...
JavaScript
0.000001
@@ -1760,19 +1760,43 @@ -const res = +strapi.lockAppWithOverlay();%0A%0A awa @@ -1888,35 +1888,8 @@ );%0A%0A - if (res.data.id) %7B%0A @@ -1955,18 +1955,16 @@ ;%0A - goBack() @@ -1969,16 +1969,8 @@ ();%0A - %7D%0A @@ -2315,24 +2315,66 @@ on.error');%0A + %7D finally ...
7c2e7151ad63d049e67b0d137ad54c788d86e109
Update test
tests/unit/models/collecting-event-test.js
tests/unit/models/collecting-event-test.js
import { moduleForModel, test } from 'ember-qunit'; moduleForModel('collecting-event', 'Unit | Model | collecting event', { // Specify the other units that are required for this test. needs: ['model:locality', 'model:collector'] }); test('it exists', function(assert) { let model = this.subject(); // let store...
JavaScript
0.000001
@@ -225,16 +225,31 @@ llector' +, 'model:agent' %5D%0A%7D);%0A%0At
b25c2d184a420ad3cbbefbd4d544ed8b7debc455
Rebuild useFrom / setTo src list when dependency list changes
gui/app/catalog/addOrEdit/AddOrEditSpecController.js
gui/app/catalog/addOrEdit/AddOrEditSpecController.js
/* global angular:false */ angular .module('ndslabs') .filter('invertSpecList', [ 'Specs', '_', function(Specs, _) { return function(input, myKey) { return _.filter(Specs.all, function(spec) { return !_.find(input, [ 'key', spec.key ]) && !_.find(input, [ 'key', myKey ]); }); }; }]) /** * Th...
JavaScript
0
@@ -2691,15 +2691,8 @@ ends -.length ', f @@ -3086,16 +3086,22 @@ %7D);%0A %7D +, true );%0A%0A //
e8a7d691d6a08e7bf99511dad5d56561fa39edbd
set interactive: false on noninteractive layers
busstops/static/js/history.js
busstops/static/js/history.js
(function () { 'use strict'; /*jslint browser: true */ /*global L, reqwest */ var map; function getMarker(latLng, direction) { direction = (direction || 0) - 135; return L.marker(latLng, { icon: L.divIcon({ iconSize: [16, 16], ...
JavaScript
0.013012
@@ -783,16 +783,43 @@ ght: 0,%0A + interactive: false%0A %7D;%0A%0A @@ -4851,32 +4851,68 @@ %7D +,%0A interactive: false %0A %7D);
3a49ba69ab995be04a06a906b55adb718d838c5a
fix test
modules/profile/test/test.js
modules/profile/test/test.js
var request = require('request'); var assert = require('assert'); var testEmail = 'ash.1382@gmail.com'; describe('Testing client requests:',function() { it('User registered successfully',function(done) { request( { url: 'http://localhost:8000/subscribers', body: '{ \"email\": \"'+testEmail+'\", \"pas...
JavaScript
0.000002
@@ -1184,15 +1184,15 @@ ofb_ -src_dst +eth_src %5C%22:t
6948b965217eb817b50a4f7bfde1e723834fbb6d
add verification
api/controllers/WorkersController.js
api/controllers/WorkersController.js
var express = require('express'); var jsend = require('jsend'); var bodyParser = require('body-parser'); var Worker = require('./../models/worker') var router = express.Router(); var urlencodedParser = bodyParser.urlencoded({ extended: false }); router.use(jsend.middleware); router.use(function(req, res, next) { ...
JavaScript
0
@@ -1266,295 +1266,34 @@ Name -) %7B%0A%09return res.status(400).jsend.fail(%7B error_code: 'missing_parameters',%0A%09%09%09%09%09 name: 'a first name is required' %7D);%0A %7D%0A if (!req.body.lastName) %7B%0A%09return res.status(400).jsend.fail(%7B error_code: 'missing_parameters',%0A%09%09%09%09%09 nam...
c4364446b8e45f9424e1f338ac363549a846f6d4
Bump up version
jquery.hideseek.js
jquery.hideseek.js
/** * HideSeek jQuery plugin * * @copyright Copyright 2013, Dimitris Krestos * @license Apache License, Version 2.0 (http://www.opensource.org/licenses/apache2.0.php) * @link http://vdw.staytuned.gr * @version v0.1.0 * * Dependencies are include at the bottom: * Highlight v4 by Johann Burkard * */ ...
JavaScript
0
@@ -221,17 +221,17 @@ on v0. -1 +2 .0%0A *%0A * @@ -256,16 +256,37 @@ include +in minified versions at the b @@ -294,16 +294,19 @@ ttom:%0A * + 1. Highlig
47422708031c26e6337c627cdb37a08904d951f2
disable native driver for iOS
modules/transitionRegistry.js
modules/transitionRegistry.js
import { Animated, Easing, NativeModules, NavigationExperimental, } from 'react-native'; import invariant from 'invariant'; import { warnOnce } from './warningUtil'; const { Card: NavigationCard, } = NavigationExperimental; const { PagerStyleInterpolator: NavigationPagerStyleInterpolator, CardStackStyle...
JavaScript
0
@@ -67,16 +67,28 @@ mental,%0A + Platform,%0A %7D from ' @@ -494,19 +494,19 @@ %0A%0Aconst -use +has NativeDr @@ -551,16 +551,235 @@ odule;%0A%0A +// FIXME %60Animated.setValue%60 via NativeAnimated for iOS is buggy and causes%0A// panResponders to fail.%0A// Also See facebook/react-native#9729%0Aconst useNative...
2cfaf74bfddaae505247ba7f9a684b38bc0f5b1e
Fix deleteAllSnapshots
v8-profiler.js
v8-profiler.js
var binary = require('node-pre-gyp'); var path = require('path'); var binding_path = binary.find(path.resolve(path.join(__dirname,'./package.json'))); var binding = require(binding_path); var Stream = require('stream').Stream, inherits = require('util').inherits; function Snapshot() {} Snapshot.prototype.getHead...
JavaScript
0.000001
@@ -3762,32 +3762,44 @@ nction () %7B%0A +Object.keys( binding.heap.sna @@ -3804,16 +3804,17 @@ napshots +) .forEach @@ -3819,32 +3819,27 @@ ch(function( -snapshot +key ) %7B%0A sn @@ -3836,24 +3836,37 @@ %7B%0A +binding.heap. snapshot .delete( @@ -3857,16 +3857,22 @@ snapshot +s%5Bkey%5D .del...
beccee903c6e323d0577cd862b7eb1c9ce3398be
Remove unnecessary quotes from AT.js
js/constants/AT.js
js/constants/AT.js
/* ActionTypes */ import keyMirror from 'key-mirror-nested' export default keyMirror({ FILE_EXPLORER: { 'DATA_LOADED': '', 'SELECT_FILE': '', 'OPEN_SELECTION_MODE': '', 'CLOSE_SELECTION_MODE': '', 'CONFIRM_SELECTION': '', }, FILE_CONTENT: { 'DATA_LOADED': '', }, TERMINAL: { 'ADD_...
JavaScript
0.000001
@@ -97,33 +97,32 @@ EXPLORER: %7B%0A -' DATA_LOADED': '' @@ -108,33 +108,32 @@ %0A DATA_LOADED -' : '',%0A 'SELEC @@ -126,17 +126,16 @@ '',%0A -' SELECT_F @@ -137,17 +137,16 @@ ECT_FILE -' : '',%0A @@ -143,25 +143,24 @@ LE: '',%0A -' OPEN_SELECTI @@ -158,33 +158,32 @@ N_SELECTION_MODE -' ...
60ae059daf0c4c0123cdd0b04f7e260dd5603f89
Add support for include, etc called with parenthesis
js/language/php.js
js/language/php.js
/** * PHP patterns * * @author Craig Campbell * @version 1.0.1 */ Rainbow.extend('php', [ { 'name': 'support', 'pattern': /\becho\b/g }, { 'matches': { 1: 'variable.dollar-sign', 2: 'variable' }, 'pattern': /(\$)(\w+)\b/g }, { ...
JavaScript
0
@@ -506,18 +506,25 @@ _once)?) +(?=%5C(%7C %5Cb +) /g%0A %7D
921d5b8286182968459942caf94d9e6730ce0eef
Fix minor bug when the first comment is created
app/js/arethusa.comments/comments.js
app/js/arethusa.comments/comments.js
"use strict"; angular.module('arethusa.comments').service('comments', [ 'state', 'configurator', 'navigator', 'notifier', function(state, configurator, navigator, notifier) { var self = this; var retriever, persister; var idMap; var commentIndex; var reverseIndex; var fullTextIndex; ...
JavaScript
0
@@ -3504,37 +3504,304 @@ -addToIndex(commentContainer); +// Could be that this chunk had no comments before,%0A // so we need to get the just newly created object%0A // from the retriever and build up all our indices.%0A if (self.comments) %7B%0A addToIndex(commentContainer);%0A ...
826fa33ed45a957d86ee003b9d41b06efbbac41a
Fix undoing of tokenRemoved
app/js/arethusa.dep_tree/dep_tree.js
app/js/arethusa.dep_tree/dep_tree.js
'use strict'; /* Dependency Tree Handler with Diff capabilities * * This service has not much to do - the tree itself is handled * completely by the dependencyTree directive. * * It has however additional diff capabilities, that are triggered * by a global diffLoaded event. * Knows how to pass style information ...
JavaScript
0.000003
@@ -2568,24 +2568,89 @@ %7B%7D;%0A %7D%0A%0A + function hasHead(token) %7B%0A return token.head.id;%0A %7D%0A%0A state.on @@ -2770,24 +2770,167 @@ t, token) %7B%0A + // We need to disconnect manually, so that this event%0A // can be properly undone.%0A if (hasHead(token)) self.disco...
7ee226dac279755cc3cd1c6cf1fdafbbd83f64bf
Establish session in default handler.
app/password/http/handlers/verify.js
app/password/http/handlers/verify.js
/** * Password authentication handler. * * This component provides an HTTP handler that authenticates a username and * password. The credentials are submitted via an HTML form. */ exports = module.exports = function(parse, csrfProtection, authenticate, ceremony) { function establishSession(req, res, next) { ...
JavaScript
0
@@ -587,16 +587,18 @@ ),%0A + %5B establi @@ -606,16 +606,18 @@ hSession + %5D %0A )%0A
3d8bb0a9d8d0b371bb77cc25c36b2a98ea6900de
Add rnd ping
js/pickles/boom.js
js/pickles/boom.js
#!/usr/local/bin/node const WebSocket = require('ws'); const BattleMode = require('./battlemode'); const tools = require('./tools'); const config = require('./config.json'); const COMMANDS = { join: `{"n":"startData","d":{"name":"__NAME__","skin":"__SKIN__"}}`, ping: `{"n":"pong2","d":0}` } let teamId = 0, pic...
JavaScript
0
@@ -1902,32 +1902,104 @@ break;%0A + case 'rc1':%0A bm.r_cap_1(frame, data);%0A break;%0A case 'bc @@ -2264,24 +2264,105 @@ e!';%0A %7D +%0A%0A if (tools.rnd(0, 100) %3E 90) %7B%0A socket.send(COMMANDS.ping);%0A %7D %0A %0A
2332d5ddef50e0f62d32c538abc34274211577f0
Update qalet_plugin.js
js/qalet_plugin.js
js/qalet_plugin.js
var _CALLBACK_ = function() { $(document).ready( function() { function parse(v) { var t = v.replace(/(“|”)/ig, '"'); alert(v); return JSON.parse(t); } var v = $('QALET'), r={}, f=[]; for (var i = 0; i < v.length; i++) { var data = $(v[i]).html(); if (!data) data = $(v[i]).attr('dat...
JavaScript
0.000001
@@ -128,17 +128,8 @@ %09%09%09%09 -alert(v); %0A%09%09%09 @@ -515,16 +515,45 @@ slow%22);%0A +%09%09%09%09%09alert( $(v%5Bi%5D).html());%0A %09%09%09%09%7D%0A%09%09
ad94af70c05dae1b86262675c8a351b526ef8b7d
Update integration tests for `agents` requester option
test/integration/requester-spec/agents.test.js
test/integration/requester-spec/agents.test.js
var sinon = require('sinon'), http = require('http'), https = require('https'), expect = require('chai').expect; describe('Requester Spec: agents', function () { var testrun; describe('http agent', function () { var customAgent = new http.Agent(), agentSpy = sinon.spy(customAge...
JavaScript
0
@@ -231,32 +231,113 @@ ) %7B%0A var +customAgent,%0A agentSpy;%0A%0A before(function (done) %7B%0A customAgent = ne @@ -342,33 +342,33 @@ new http.Agent() -, +; %0A age @@ -424,41 +424,8 @@ );%0A%0A - before(function (done) %7B%0A @@ -1628,32 +1628,113 ...
153c32eb6643f4dedc9120bf56930a02f9439e2b
Update quote_rotate.js
js/quote_rotate.js
js/quote_rotate.js
var quotations = [ { quote : "I choo choo choose you.", author : "Ralph Wigum" }, { quote : "Love can sweep you off your feet and carry you along in a way you've never known before.<br> But the ride always ends, and you end up feeling lonely and bitter.<br> Wait. It's not love I'm describing. I'm thinking o...
JavaScript
0.000002
@@ -399,16 +399,20 @@ edding? +%3Cbr%3E Well, W
161707fa605f7043a2d28843fa9ea08fb05799e4
Fix button removal not working well
js/term/buttons.js
js/term/buttons.js
const { getColor } = require('./themes') const { qs } = require('../utils') module.exports = function initButtons (input) { let container = qs('#action-buttons') // current color palette let palette = [] // button labels let labels = [] // button colors let colors = {} // button elements let butt...
JavaScript
0
@@ -1428,21 +1428,22 @@ let i = -label +button s.length @@ -1450,17 +1450,15 @@ ; i -%3C= button +%3E label s.le @@ -1456,34 +1456,34 @@ labels.length; i -++ +-- ) %7B%0A popB
ac11640b1a82f7c8cce27440726775f4d513f3dc
Change pixelated platform repo name
config/client.js
config/client.js
var repos = {}; var labels = {}; var configurable = require('../lib/configurable'); function addRepo(name, key, label) { configurable.get(key) && (repos[name] = configurable.get(key)); configurable.get(key) && (labels[name] = (label || repos[name])); } configurable.setSilentMode(true); addRepo('user-agent', 'PX_U...
JavaScript
0.000001
@@ -408,42 +408,66 @@ o('p -latform', 'PX_PLATFORM', 'Platform +uppet-pixelated', 'PX_PUPPET_PIXELATED', 'Puppet Pixelated ');%0A @@ -1217,8 +1217,9 @@ abels%0A%7D; +%0A
c7f4e0dda2d7f4b768b60f29a7f8f69bca46c9f0
add attribution
firefox/gm_scripts/Hello_World/Hello_World.user.js
firefox/gm_scripts/Hello_World/Hello_World.user.js
// ==UserScript== // @name Hello World // @namespace http://hayageek.com // @include https://greasyfork.org/* // @include http://www.google.com/* // @include https://www.google.com/* // @grant none // @version 1 // ==/UserScript== // TODO: The button shows up in both the hayageek.com and...
JavaScript
0.000001
@@ -256,16 +256,117 @@ ript==%0A%0A +// Attribution: Original version of this script was from http://hayageek.com/greasemonkey-tutorial/%0A%0A // TODO:
10807261bd1cd510b9cb78ea30db7de1a7966105
Fix bug - return the unmodified element when it is a child with scalar value, instead of false, which causes the element to be removed from the application state
packages/core/src/transform/transformRegistry.js
packages/core/src/transform/transformRegistry.js
'use strict'; import invariant from 'invariant'; import Registry from '../common/MultivalueRegistry'; import { isElementRef } from '../data/element'; import { Iterable } from 'immutable'; import R from 'ramda'; import { postWalk } from 'zippa' import elementZipper from '../zip/elementZipper' const transformerRegi...
JavaScript
0
@@ -973,13 +973,15 @@ urn -false +element %0A %7D
c962ed60ed856695d76e76604e1a8b49f664c971
Remove unused comment
buildtools/webpack.examples.js
buildtools/webpack.examples.js
const path = require('path'); const fs = require('fs'); const ls = require('ls'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const plugins = []; const entry = {}; const exampleFilenamePrefix = process.env.DEV_SERVER ? 'examples/' : ''; for (con...
JavaScript
0
@@ -497,70 +497,8 @@ = %5B%0A - //'./examples/common_dependencies.js', // Should be first%0A
e4d94dcb2bb4101c93067d62cf64e0a0fed489ae
Handle npm outdated exit codes (#244)
packages/fbjs-scripts/gulp/check-dependencies.js
packages/fbjs-scripts/gulp/check-dependencies.js
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ 'use strict'; va...
JavaScript
0
@@ -974,22 +974,296 @@ -if (code !== 0 +// npm outdated now exits with non-zero when there are outdated deps, so%0A // we'll handle that gracefully across npm versions and just assume that%0A // things are fine unless we can't parse stdout as JSON.%0A try %7B%0A var outdatedData = JSON.parse...
7227dcea33bc4bbe2d87361be14a96db4d97be63
Change config file layout
jobs/config/jenkins.js
jobs/config/jenkins.js
module.exports = [ // minimal config to display status of all, no auth { url: 'http://jenkins.example.com/jenkins/', jobs: 'all' }, // config incl. auth { user: 'username', pass: 'password', url: 'http://ci.example.com/', jobs: 'all' }, // change request interval { url: 'http://ci.example2.com/', jobs: [ 'test'...
JavaScript
0.000001
@@ -1,98 +1,27 @@ -module.exports = %5B%0A// minimal config to display status of all, no auth%0A%7B%0A%09 +%5B%0A%7B%0A %22 url +%22 : -' +%22 http:// -jenkins +ci .exa @@ -33,103 +33,83 @@ com/ -jenkins/',%0A%09 +simpleExampleDisabled%22,%0A %22 jobs +%22 : -'all'%0A%7D,%0A// config incl. auth%0A%7B%0A%09us...
588abbb1f1e10c6e2baec0fccf54feac29aecaac
tag label referenciando as respostas
www/js/ajax.js
www/js/ajax.js
var hr = new XMLHttpRequest(); function httpRequestCreate(method,url){ hr.open(method,url,true); hr.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); } function ajax_post(){ if($("#usuario").val() != "" && $("#senha").val() != ""){ var fn = document.getElementById("u...
JavaScript
0.000101
@@ -5966,16 +5966,29 @@ %22answer%22 + id=%22op'+i+'%22 value=%22 @@ -6024,40 +6024,109 @@ +'%22%3E - '+return_data%5Bi%5D.content+%22 +'+%0A '%3Clabel for=%22op'+i+'%22%3E'+return_data%5Bi%5D.content+%0A '%3C/label%3E %3Cbr%3E -%22 +' ;%0A
11db3d5f84a947c9a4984d58c767ecd25e4f86b7
Update it7Utils.js
it7Utils.js
it7Utils.js
;(function(){ var it7Utils = function(){}; it7Utils.version = '1.0.0'; /** * * @param money * @param [c] к-во знаков после запятой * @param [d] разделитель десятых 10.00 * @param [t] разделитель тысяч 1'000 * @returns {string} */ it7Utils.formatMoney = f...
JavaScript
0
@@ -70,17 +70,17 @@ on = '1. -0 +1 .0';%0D%0A%0D%0A @@ -987,16 +987,222 @@ %0A %7D;%0D +%0A %0D%0A it7Utils.formatPrice = function(price, isCent) %7B%0D%0A isCent === undefined && (isCent = true);%0D%0A var m = isCent ? price / 100 : price;%0D%0A return it7Utils.formatMoney(m);%0D%0A ...
e44b05f61b1e88990d50b6fe84f6746b9358c75b
Correct a test description
graphql/database/users/__tests__/UserModel.test.js
graphql/database/users/__tests__/UserModel.test.js
/* eslint-env jest */ import moment from 'moment' import tableNames from '../../tables' import { permissionAuthorizers } from '../../../utils/authorization-helpers' import User from '../UserModel' import config from '../../../config' import { mockDate } from '../../test-utils' const mediaRoot = config.MEDIA_ENDPOIN...
JavaScript
0.999999
@@ -1877,39 +1877,49 @@ low create when -user ID +the user%5C's email is different',
8b3600d86fe634aed7cef910598e57da0192b47c
Add README, Change transition to remember the previous display property instead of setting it back to static after the transition
jquery.quick-wizard.js
jquery.quick-wizard.js
(function ($) { var settings = { 'prevButton': '<button id="form-wizard-prev" type="button" disabled="disabled">Previous</button>', 'nextButton': '<button id="form-wizard-next" type="button">Next</button>', 'activeClass': 'form-wizard-active', 'element': 'fieldset', ...
JavaScript
0
@@ -488,20 +488,21 @@ $.fn. -form +quick Wizard = @@ -2872,24 +2872,203 @@ tiveClass);%0D +%0A %0D%0A /* Get the current element's position and store it */%0D%0A active.data('posiiton', active.css('position'));%0D %0A%0D%0A @@ -3195,32...
5ff0521cf12e0310c306a2b17927af1d399f0f27
Use single line comment syntax
jquery.rollingblogs.js
jquery.rollingblogs.js
/*! * jquery.rollingblogs v0.3 * * Copyright 2013 Sahil Bajaj * Released under the MIT license */ (function ($, google) { // Load Google Feed API google.load("feeds", "1") /** * Fetches the feeds (each with one entry) using the Google Feed API * * @param {Array} feeds URLs of feeds to be loaded * @return...
JavaScript
0.000002
@@ -1,10 +1,6 @@ / -*!%0A * +/ jqu @@ -25,13 +25,13 @@ 0.3%0A - *%0A * +//%0A// Cop @@ -54,18 +54,18 @@ l Bajaj%0A - * +// Release @@ -91,12 +91,8 @@ ense -%0A */ %0A%0A(f @@ -169,21 +169,17 @@ %221%22)%0A%0A%09/ -**%0A%09* +/ Fetches @@ -238,20 +238,18 @@ ed API%0A%09 -*%0A%09* +// @param @@ -290,17 ...
184e5482787015c87a7e20475e9e2f420df49a5f
resolve #2: Implement automated challenge issue creator.
hackerrank_scripts/createGHIssuesForHRSubDomain.js
hackerrank_scripts/createGHIssuesForHRSubDomain.js
const $1 = require('./getHRChallengesForHRSubDomain'); const $2 = require('./createGHIssueForHRChallenge'); module.exports = { createGHIssuesForHRSubDomain(password, hrSubDomain, label) { return $1.getHRChallengesForHRSubDomain(hrSubDomain) .then(hrChallenges => Promis...
JavaScript
0
@@ -102,16 +102,123 @@ nge');%0A%0A +function delay(ms) %7B%0A return () =%3E new Promise(resolve =%3E %7B%0A setTimeout(resolve, ms);%0A %7D);%0A%7D%0A%0A module.e @@ -418,20 +418,8 @@ -Promise.all( hrCh @@ -431,27 +431,104 @@ ges. -map(hrChallenge =%3E%0A +reduce(%0A (ch...
cec89ffbdfa988718c05810a902c3d5baac18e4f
Add sprockets requires
jquery.selector-set.js
jquery.selector-set.js
(function(window, $) { var document = window.document; var SelectorSet = window.SelectorSet; var originalEventAdd = $.event.add; var originalEventRemove = $.event.remove; var handleObjs = {}; $.expr.cacheLength = 500; if (!SelectorSet) { throw "SelectorSet undefined - https://github.com/josh/jquery-...
JavaScript
0.000001
@@ -1,8 +1,78 @@ +// jQuery SelectorSet%0A//%0A//= require jquery%0A//= require selector-set%0A%0A (functio
330fc11b61882309ab9a9fb2f6e14aac1c0204d2
convert to es6
js/boids.js
js/boids.js
import BABYLON from 'babylonjs'; import boidProto from '../boid.proto'; var BoidMessage = boidProto.main.BoidPosition; window.addEventListener("DOMContentLoaded", function(evt) { var boids = {} var canvas = document.getElementById('renderCanvas'); var engine = new BABYLON.Engine(canvas, true); var createSce...
JavaScript
0.999999
@@ -1,12 +1,27 @@ +'use strict';%0A%0A import BABYL @@ -81,19 +81,21 @@ roto';%0A%0A -var +const BoidMes @@ -179,29 +179,24 @@ d%22, -function(evt) %7B%0A var +evt =%3E %7B%0A const boi @@ -206,19 +206,21 @@ = %7B%7D%0A%0A -var +const canvas @@ -264,19 +264,21 @@ as');%0A -var +const engine @@ -31...
b842fbd5ae6704e173fdba18ac9a0a2ed4b34da6
Update data tests with non-depricated accessors
test/Data.js
test/Data.js
"use strict"; /** LocusZoom.js Data Test Suite Test LocusZoom Data access objects */ var jsdom = require('mocha-jsdom'); var fs = require("fs"); var assert = require('assert'); var should = require("should"); describe('LocusZoom Data', function(){ // Load all javascript files jsdom({ src: [ fs.r...
JavaScript
0
@@ -1814,38 +1814,32 @@ uld.exist(ds.get -Source (%22t1%22));%0A @@ -2072,38 +2072,32 @@ uld.exist(ds.get -Source (%22t1%22));%0A @@ -2218,38 +2218,32 @@ ds.add -Source (%22t1%22, new TestS @@ -2255,22 +2255,16 @@ 1()).add -Source (%22t2%22, n @@ -2601,38 +2601,32 @@ uld.exist(ds.get -S...
8589a42ca9aaf6d40fd9e50f62efb4c69bb33c1b
Add test for Tests that throw Strings instead of Errors
test/Test.js
test/Test.js
/* eslint-env mocha */ var sinon = require('sinon') describe('Test', () => { var name = 'hello' var subject = example.hello.sync var given = new purified.matchers.Given(['Nick'], new purified.matchers.Returns('Hello, Nick!')) var throws = new purified.matchers.Throws('Missing name') var runnables = [given, t...
JavaScript
0
@@ -870,16 +870,73 @@ sandbox%0A + var runnables = %5Bnew purified.matchers.Returns()%5D%0A%0A be @@ -1131,201 +1131,170 @@ -var test = new purified.Test(%0A 'failing',%0A () =%3E %7B throw new Error('message') %7D,%0A %5Bnew purified.matchers.Returns()%5D%0A )%0A%0A it...
918952876bcea39bf1cad70919546441360e24ec
rewrite paths to deal with abspath
test/base.js
test/base.js
var path = require("path"), config = require("../app/modules.js").GlobalConfig; config.groups.juju.async = false; config.combine = false; config.debug = true; //config.filter = "debug"; for (var name in config.groups.juju.modules) { var el = config.groups.juju.modules[name]; el.fullpath = path.resolve("ap...
JavaScript
0
@@ -277,18 +277,149 @@ es%5Bname%5D -;%0A +,%0A fp = el.fullpath;%0A%0A if (fp) %7B%0A if (fp.indexOf(%22/%22) === 0) %7B%0A fp = el.fullpath.slice(1);%0A %7D%0A el.f @@ -452,21 +452,18 @@ p%22, -el.fullpath); +fp);%0A %7D %0A%7D%0A%0A
89c8f15dd12f78a06b47e0eb19c079e29fdfba94
Update copy
private/js/components/Upload.react.js
private/js/components/Upload.react.js
var React = require('react'); var FileDragAndDrop = require('react-file-drag-and-drop'); var JsonFormatExample = require('./JsonFormatExample.react'); var Upload = React.createClass({ getInitialState: function () { return { data: { 0: 'This is the first second.', 1: 'This is the second sec...
JavaScript
0
@@ -1562,16 +1562,30 @@ op your +annotation in JSON fil
8ea1b6fdc1c97ddf6a8230bf9ef460c24c0f51a7
Remove dead code
src/transmission/ConnectionMessage.js
src/transmission/ConnectionMessage.js
import {inspect} from 'util'; import Passes from './Passes'; import Query from './Query'; import JointMessage from './JointMessage'; import JointChannelMessage from './JointChannelMessage'; import MergingMessage from './MergingMessage'; import SeparatingMessage from './SeparatingMessage'; export default class Conne...
JavaScript
0.001497
@@ -1254,77 +1254,8 @@ ) %7B%0A - // return ConnectionMessage.createNext(this, sourceChannelNode);%0A
98677a1b76180f330d56823ec3ceef2cba7cb745
Update FileUpload.js
packages/rocketchat-file-upload/lib/FileUpload.js
packages/rocketchat-file-upload/lib/FileUpload.js
/* globals FileUpload:true */ /* exported FileUpload */ import filesize from 'filesize'; let maxFileSize = 0; FileUpload = { validateFileUpload(file) { if (file.size > maxFileSize) { const user = Meteor.user(); const reason = TAPi18n.__('File_exceeds_allowed_size_of_bytes', { size: filesize(maxFileSize)...
JavaScript
0.000001
@@ -313,17 +313,16 @@ ileSize) -, %0A%09%09%09%7D, u
7ccb64d64551b85b9efb214f7e8bd8f2c14e8093
edit Select component test
src/ui/select/src/test/select.test.js
src/ui/select/src/test/select.test.js
import React from 'react'; import chai, { expect } from 'chai'; import chaiEnzyme from 'chai-enzyme'; import { mount, shallow } from 'enzyme'; import Select from '../select'; import styles from '../select.css'; chai.use(chaiEnzyme()); describe('<Select />', () => { const baseProps = { labelKey: 'name', onC...
JavaScript
0
@@ -581,35 +581,25 @@ (wrapper -).to.have.className +.hasClass (styles%5B @@ -607,32 +607,48 @@ single-select'%5D) +).to.equal(true) ;%0A %7D);%0A%0A it('u
1bdf520e0648ff142adcfc431a4d385b3f1eb06b
add test module
test/conf.js
test/conf.js
JavaScript
0.000001
@@ -0,0 +1,350 @@ +/**%0A * @file conf.js%0A * @description %E9%85%8D%E7%BD%AE%E6%B5%8B%E8%AF%95%E6%96%87%E4%BB%B6%0A * @author schoeu%0A * */%0A%0Avar expect = require('chai').expect;%0Avar config = require('../src/config');%0Avar confPath = './map.test.json';%0Aconfig.init(confPath);%0A%0Adescribe('config test', func...
227bdead40b0963124a72ec59f10aa12a035a270
fix extension url for chrome
chrome/chrome.js
chrome/chrome.js
/* * eksi-okuyucu - Eksi sozluk for humans * Copyright (C) 2013 Onur Aslan <onur@onur.im> * See COPYING for distribution information */ // open index.html when user click extension icon chrome.browserAction.onClicked.addListener (function (tab) { chrome.tabs.create ({'url': chrome.extension.getURL ('app/index....
JavaScript
0.000001
@@ -303,20 +303,16 @@ etURL (' -app/ index.ht @@ -323,112 +323,8 @@ %7D);%0A - //window.open(chrome.extension.getURL(%22app/index.html%22),%22eksi-okuyucu-window%22,%22width=640,height=480%22)%0A %7D);%0A
6af49f68008302398a816ae1a2bcd42120e608e9
add semicolin
contrib/js/nntpchan/report.js
contrib/js/nntpchan/report.js
/** censor tools */ function show_censortools() { var e = document.getElementById("censor-tools"); if(e) e.checked = true; } function nntpchan_report_thread(posthash) { var thread = document.getElementById("thread_"+posthash); if (!thread) return; var posts = thread.getElementsByClassName("post")...
JavaScript
0.003851
@@ -1073,24 +1073,25 @@ msg));%0A %7D +; %0A%0A var ha
55de7be68c4ca61c703770a96df23f94f403b998
Refactor freeze utility
src/utilities/functional/immutable.js
src/utilities/functional/immutable.js
'use strict'; const { ENV } = require('../env'); // Deeply Object.freeze() over an object. const deepFreeze = function (obj) { const isObjectOrArray = obj && (obj.constructor === Object || Array.isArray(obj)); if (!isObjectOrArray) { return obj; } // Avoid infinite recursions const isFrozen = Object.isFr...
JavaScript
0
@@ -44,16 +44,57 @@ env');%0A%0A +const %7B mapValues %7D = require('./map');%0A%0A // Deepl @@ -177,36 +177,74 @@ t is -ObjectOr +Array = Array.isArray(obj);%0A const isObject = !is Array -= +&& obj && -%0A ( + obj. @@ -269,39 +269,28 @@ ject - %7C%7C Array.isArray(obj));%0A if ( +;%0A if (!isArray && ...
d2d4df409ac9105480a5533724d61708f741cb5d
fail in the case of a correct answer
CowsAndBulls/cowsandbulls.js
CowsAndBulls/cowsandbulls.js
"use strict"; var assert = require('assert'); var Game = function(goal) { this.score = function(guess) { var cows = 0; var bulls = 0; return { cows: cows, bulls: bulls }; }; return this; }; var createGame = function(goal) { return new Game(goal); }; describe("cows and bu...
JavaScript
0.999997
@@ -578,16 +578,168 @@ s);%0A%09%7D); +%0A%0A%09it('all correct is all bulls', function() %7B%0A%09 var game = createGame('1234');%0A%0A%09 var r = game.score('1234');%0A%09 assert.equal(4, r.bulls);%0A%09%7D); %0A %7D);
87f2b845bd9dc3cc86a960e27ff88dafc5ec085e
Update middleware.js
examples/functional-s3-block-store/middleware.js
examples/functional-s3-block-store/middleware.js
const router = module.exports = require('express').Router() const BlockStore = require('./') // Define thin wrappers for express implementing our BlockStore methods const getObject = (req, res) => { return BlockStore.get(req.params) .then(data => data.pipe(res)) .catch(() => errorNotFound(req, res)) } ...
JavaScript
0.000001
@@ -91,16 +91,129 @@ re('./') +%0Aconst %7BerrorNotFound, errorNoArguments, %0A errorUnexpected, isLoggedIn%7D = require('./middleware.shared.js') %0A%0A// Def @@ -758,536 +758,8 @@ %0A%7D%0A%0A -// Error/misc handlers, TODO: move these to another file%0Aconst errorNotFound = (req, res) =%3E res.status(404)%0A...
2efce64ec86f42581ecfb2661e0aee3aea005273
Update packages/truffle/test/scenarios/commands/build.js
packages/truffle/test/scenarios/commands/build.js
packages/truffle/test/scenarios/commands/build.js
const assert = require("assert"); const CommandRunner = require("../commandrunner"); const MemoryLogger = require("../memorylogger"); const sandbox = require("../sandbox"); const path = require("path"); describe("truffle build [ @standalone ]", () => { const logger = new MemoryLogger(); let config, project; des...
JavaScript
0
@@ -1469,37 +1469,43 @@ script%22, async -() =%3E +function () %7B%0A await C
2ebab018d2c4e6fcae7f682a32bf22e91408f19d
use process.cwd instead
GruntTasks/GruntConfigBuilder.js
GruntTasks/GruntConfigBuilder.js
module.exports = { merge: null, glob: null, grunt: null, init: function(grunt, appConfig) { this.merge = require('merge'); this.glob = require('glob'); require('load-grunt-tasks')(grunt); this.grunt = grunt; var config = { pkg: grunt.file.readJSON('package.json'), env: process....
JavaScript
0
@@ -44,23 +44,8 @@ ull, -%0A grunt: null, %0A%0A @@ -190,32 +190,8 @@ nt); -%0A this.grunt = grunt; %0A%0A @@ -1169,31 +1169,30 @@ ire( -this.grunt.file.findup( +process.cwd() + '/' + file @@ -1196,17 +1196,16 @@ ilepath) -) ;%0A %7D
5098792de89281d65001fc037e3b7bb03717ecb1
Add test to ensure description is printed
test/demo.js
test/demo.js
var assert = require("assert"); var path = require("path"); var Browser = require("zombie"); const browser = new Browser(); var indexHTMLURL = "file://" + path.join(__dirname, "..", "index.html"); /** Utilities **/ // TODO: with refactor into a node module, this can go away! function getParameterByName(url, name) { ...
JavaScript
0
@@ -2254,11 +2254,1636 @@ %7D);%0A + it(%22should show the description when the 'Show Description' button is clicked%22, function (done) %7B%0A var oldUrl = browser.location.href;%0A browser.click(%22#demo%22, function() %7B%0A // Make sure the URL changed%0A assert.notEqual(...
42c059f395e37e48a15cc33068e67b048142cfe7
add comment
js/crysyan-designer.js
js/crysyan-designer.js
(function() { // jquery if (!window.$) { var jQuery = window.parent.$ || window.jQuery; if (!jQuery) { throw new Error("Crysyan requires 'jQuery'"); } else { window.$ = jQuery; } } // function getRandomString() { if (window.crypto && w...
JavaScript
0
@@ -890,29 +890,16 @@ - called a @@ -955,28 +955,21 @@ - +and a 'Crysya @@ -988,17 +988,16 @@ nstance - as a par @@ -2149,24 +2149,249 @@ /**%0A + * drawBackgroupWithImage%0A *%0A * Usually, you need to add %22../../%22 in front...
a0b30b6609c51692b2f5a79b7ed15d2f2d9a7173
remove trimKey option, clean up indents/whitespace
jquery.serializeObject.js
jquery.serializeObject.js
/* * .serializeObject (c) Dan Heberden * danheberden.com * * Gives you a pretty object for your form elements */ (function($){ $.fn.serializeObject = function( trimKey ) { if ( !this.length ) { return false; } var $el = this, data = {}, lookup = data; //current reference of data $el.find(...
JavaScript
0
@@ -122,17 +122,18 @@ ion($)%7B%0A -%09 + $.fn.ser @@ -160,23 +160,16 @@ ion( - trimKey ) %7B%0A%09%09 +) %7B%0A if ( @@ -206,12 +206,9 @@ ; %7D%0A -%09%09%0A%09 +%0A @@ -227,11 +227,14 @@ is,%0A -%09%09%09 + data @@ -241,28 +241,24 @@ = %7B%7D,%0A%09 - - lookup = dat @@ -289,21 +289...
27ba26e5b639cf83685a8863eb94028992b8b1b1
remove useNextVariants
packages/vulcan-ui-material/lib/modules/themes.js
packages/vulcan-ui-material/lib/modules/themes.js
/** @module vulcan-material-ui */ import createMuiTheme from '@material-ui/core/styles/createMuiTheme'; import { registerSetting, getSetting } from 'meteor/vulcan:core'; registerSetting('muiTheme', 'Sample', 'Material UI theme used by erikdakota:vulcan-material-ui'); export const ThemesTable = {}; // storage for i...
JavaScript
0
@@ -596,18 +596,16 @@ e,%0A %7D;%0A - %0A Theme @@ -958,31 +958,8 @@ aphy -, useNextVariants: true %7D;%0A
fe82ba3959a3ffd1ad67ec42c9e0d4e4c4b1daa1
Fix a typo.
jquery.tablecelleditor.js
jquery.tablecelleditor.js
;(function($, document) { $.fn.tablecelleditor = function(options) { var settings = $.extend(true, {}, $.fn.tablecelleditor.defaults, options); return $(this).each(function() { $(this).dblclick(function() { $.fn.tablecelleditor.startEdit($(this), settings); }); }); }; $.fn.tablece...
JavaScript
0.999957
@@ -1192,16 +1192,17 @@ ettings) +; %0A %7D);
76105ea0abb0e0e7ff729861b1fa16badfed070f
Use action.payload.result directly
app/routes/users/UserProfileRoute.js
app/routes/users/UserProfileRoute.js
// @flow import { compose } from 'redux'; import { connect } from 'react-redux'; import UserProfile from './components/UserProfile'; import { fetchUser } from 'app/actions/UserActions'; import { fetchUserFeed } from 'app/actions/FeedActions'; import { selectFeedById, selectFeedActivitesByFeedId, feedIdByUserId }...
JavaScript
0
@@ -740,444 +740,62 @@ n =%3E - %7B %0A -/**%0A * /users/me has no username property and the application fetches %22me%22%0A * when that happens. Extract the current username from the fetch response%0A * and then lookup the user ID.%0A * This hack exists because User is the only entity that doesn'...
c81ad166d38974d64f221415aaff0d330f3ea17f
Make tests default to node-webcrypto-ossl for it's webcrypto implementation
test/eutl.js
test/eutl.js
/// <reference path="../typings/node/node.d.ts" /> /// <reference path="../typings/mocha/mocha.d.ts" /> global.DOMParser = require("xmldom").DOMParser; var xadesjs = require("xadesjs"); global.xadesjs = xadesjs; var tl_create = require("../built/tl-create"); var assert = require("assert"); var fs = require("fs"); de...
JavaScript
0
@@ -206,16 +206,131 @@ adesjs;%0A +var WebCrypto = require(%22node-webcrypto-ossl%22).default;%0Axadesjs.Application.setEngine(%22OpenSSL%22, new WebCrypto());%0A var tl_c @@ -1757,8 +1757,9 @@ %7D);%0A%0A%7D) +%0A
879e5880481478709993861b3016f82d80ea19b8
Fix comment typo
app/scripts/directives/schemalist.js
app/scripts/directives/schemalist.js
'use strict'; angular.module('vleApp') .directive('schemaList', function (Dataset) { return { templateUrl: 'templates/schemalist.html', restrict: 'E', scope: {}, link: function postLink(scope, element, attrs) { // Only drag, copy static value of the dynamically set width to the dr...
JavaScript
0.000003
@@ -248,18 +248,16 @@ // On -ly drag, c
d6dffe698514d3c545dd208014bbbb9b14a8e6e6
Change the http error code for invalid ip
middlewares/project/index.js
middlewares/project/index.js
'use strict'; var Response = require('../../helper/response'); var rabbit = require('../../helper/rabbit'); var models = require('../../models'); var helper = require('../../helper'); module.exports = { project: function (req, res, next) { var userId = req.user.id; var namespace = req.params.space...
JavaScript
0.000048
@@ -1617,34 +1617,34 @@ res.status(4 -2 0 +3 ).json(JSON.stri @@ -1667,26 +1667,21 @@ se(4 -2 0 +3 , ' -IP RESTRICTIO +FORBIDDE N',
ea73cea78799b8b6071a530e677f5794d44c72bd
Update UDPefef
benchmark.js
benchmark.js
// /** * Created by tungtouch on 2/9/15. */ var cluster = require('cluster'); var numCPUs = require('os').cpus().length; var colors = require('colors'); var dgram = require('dgram'); var message = new Buffer("Some bytes hello world bo bo bo world HEHEHEHE ahhaha hohoho hehe:"); var client = dgram.createSocket("udp4"...
JavaScript
0
@@ -637,150 +637,9 @@ 0;%0A - var flag = 0;%0A if(flag == 1) %7B%0A console.log(colors.blue(%22Result benchmark: %22, colors.bold(totalReqs / second)));%0A %7Delse%7B%0A +%0A @@ -663,36 +663,32 @@ ion() %7B%0A - console.log(%0A @@ -692,28 +692,24 @@ - - co...
414219cd145a591ea42cfdcad769260f59f48489
Update bits-oder-functions.js
js/bits-oder-functions.js
js/bits-oder-functions.js
//////////////////////////////////////////////////////////////////////////////////////////////////////////// function oid() { //Get Token Balance $("#tokenBal").html(allTokens.balanceTokens.totalEarned.toFixed(2) + " tokens"); //Load Wallet $(".walletToast").remove(); if (localStorage.getItem('bits-...
JavaScript
0.000001
@@ -4829,16 +4829,17 @@ ) %7B%0Aif(! +( location @@ -4845,16 +4845,21 @@ n.origin ++'/') .include
70013235542562d25d215b5ba1ce042d5f5fd722
Check file existance synchronously.
config/index.js
config/index.js
var files = [ __dirname + '/global.json', __dirname + '/orm.json' ] , fs = require( 'fs' ) , envConfigOverride = __dirname + '/' + (process.env.NODE_ENV ? process.env.NODE_ENV.toLowerCase() : 'local') + '.json'; if ( fs.exists( envConfigOverride ) ) { files.push( envConfigOverride ); } else { console.error( 'Err...
JavaScript
0
@@ -224,16 +224,20 @@ s.exists +Sync ( envCon @@ -254,16 +254,16 @@ e ) ) %7B%0A - %09files.p @@ -302,17 +302,19 @@ %7B%0A%09 -console.e +throw new E rror @@ -383,16 +383,17 @@ DE_ENV ) +; %0A%7D%0A%0Amodu
99f436adcfe5e697b7fae3b3df080a23fa7b26fe
Add connectorCapabilities global object (#179)
test/init.js
test/init.js
// Copyright IBM Corp. 2013,2015. All Rights Reserved. // Node module: loopback-connector-postgresql // This file is licensed under the Artistic License 2.0. // License text available at https://opensource.org/licenses/Artistic-2.0 'use strict'; var DataSource = require('loopback-datasource-juggler').DataSource; var ...
JavaScript
0
@@ -1577,16 +1577,86 @@ db;%0A%7D;%0A%0A +global.connectorCapabilities = %7B%0A ilike: false,%0A nilike: false,%0A%7D;%0A%0A global.s
e501419a0ff7e2b121014b7a9d38b8e8aad1f930
Use the default imprint controller of the skeleton
js/controllers/imprint.js
js/controllers/imprint.js
"use strict"; // Serves the imprint for the application module.exports = 'controllers/imprint'; var dependencies = []; angular.module(module.exports, dependencies) .controller('ImprintCtrl', function ($scope, $http) { $scope.config = config; $http .get(config.server + '/') ...
JavaScript
0
@@ -250,16 +250,49 @@ config;%0A + if (config.server) %7B%0A @@ -297,16 +297,20 @@ $http%0A + @@ -351,16 +351,20 @@ + .success @@ -378,24 +378,28 @@ on (data) %7B%0A + @@ -436,19 +436,33 @@ -%7D); + %7D);%0A %7D %0A %7D);
7419f88a99dbdf747606b0780a95686288d65e21
Improve documentation
js/jquery.mousemove.js
js/jquery.mousemove.js
// Event to detect the start and the end of the move move. (function ($) { var moving = false; var timeout; var interval = 100; // Bind on mouse move event that is called each time the mouse is moved. $(document).on('mousemove', function (event) { // The mouse is not moving, so start the mo...
JavaScript
0.000004
@@ -43,17 +43,18 @@ f the mo -v +us e move.%0A @@ -284,17 +284,18 @@ e mouse -i +wa s not mo @@ -307,32 +307,42 @@ so +trigger the start -th +mous e mov -ing process +e event .%0A @@ -438,32 +438,47 @@ at it can bubble +%0A // appropriately%0A @@ -475,16 +475,17 @@ priately +. %0A ...