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
a0e447814abda287821c05738d29ca81474d8b92
Add "tags" to list of allowed keys from event in blog post projection
lib/projections/posts.js
lib/projections/posts.js
'use strict'; var Promise = require('promise'); var assign = require('object-assign'); var Remarkable = require('remarkable'); var md = new Remarkable('full'); var log = require('logule').init(module, 'blog/projections/posts'); module.exports = function(tollan, redisClient) { function renderContent(prevPost, message...
JavaScript
0
@@ -1299,16 +1299,24 @@ content' +, 'tags' %5D;%0A%09%09var
5e493cdf626e30ae5d139f6f64d92a2552aa0d0d
Handle Firefox returning mulitple candidate pairs when getting stats
lib/providers/mozilla.js
lib/providers/mozilla.js
/** Mozilla Firefox WebRTC Provider **/ var async = require('async'); var StatsReport = require('../statsreport'); var fields = require('../fields'); var util = require('../util'); exports.id = 'mozilla'; /** Implementation for Mozilla RTCPeerConnection stats **/ exports.getStats = function(pc, opts, callback) ...
JavaScript
0
@@ -1762,18 +1762,8 @@ (!cp - %7C%7C !cp.id ) re @@ -1773,16 +1773,550 @@ n null;%0A +%09// If we have multiple candidate pairs, select the most likely one%0A%09if (Array.isArray(cp)) %7B%0A%09%09if (cp.length === 0) return null;%0A%0A%09%09// Select the most likely based on success, selection or nomination%0A%09%09...
a8c200c209458e3593773778d4d2a05862c11a22
Update init.js
lib/commands/init.js
lib/commands/init.js
import elements from 'elements' import cli from 'cli' import comet from 'CometJS' var template = require('../template'); const files = template.getElementsByName(''); cli .command('init <app>', 'Initialize Comet App with template') .option('-w', '--watch', 'Watch template for updates') .parse(process.argv); ...
JavaScript
0.000001
@@ -24,16 +24,17 @@ lements' +; %0Aimport @@ -47,16 +47,17 @@ om 'cli' +; %0Aimport @@ -76,16 +76,17 @@ CometJS' +; %0Avar tem @@ -104,16 +104,17 @@ uire('.. +. /templat @@ -117,16 +117,41 @@ plate'); +%0Avar folder = require('') %0A%0Aconst @@ -339,15 +339,71 @@ .argv);%0A +%0Aif(instanceof folder('.../'...
45a7d1e7fe0d2f912b2d760ba5542730e5ad6e29
Maintain frozenness
test/type.js
test/type.js
import * as I from 'infestines' import * as R from 'ramda' export function lazy(ty2ty) { let memo = x => { memo = ty2ty(rec) return memo(x) } const rec = x => memo(x) return rec } export const any = I.id export const and = R.pipe export const or = (...ps) => x => { const es = [], n = ps.length...
JavaScript
0.000008
@@ -1576,16 +1576,18 @@ = ty =%3E +%0A and(ins @@ -1606,17 +1606,104 @@ y), -R.map(ty) +xs =%3E %7B%0A const ys = R.map(ty, xs)%0A return Object.isFrozen(xs) ? Object.freeze(ys) : ys%0A %7D )%0A%0Ae
9714d5a6a5428b6990641f9961aaf3ab07240869
add latency but disabled
lib/entities/Saas.js
lib/entities/Saas.js
// PROTOTYPE, WILL CHANGE var util = require('util') var Entity = require('../Entity') var request = require('request') // sorry, @frill process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0 // Main class that represents this module. Control inheritance below. var Main = function(config) { if (!(this instanceof Main)) ret...
JavaScript
0.000001
@@ -524,20 +524,20 @@ l = 8%0A%0A%09 -self +this .test = @@ -549,16 +549,50 @@ ion() %7B%0A +%09%09var start = process.hrtime()%5B1%5D%0A %09%09reques @@ -1002,16 +1002,79 @@ usCode)%0A +%09%09%09//self.set('latencyms',(process.hrtime()%5B1%5D-start)/1000000)%0A %09%09%7D)%0A%09%7D%0A
a9a2ad41d0a8ada84184b0b9592ecfad14975ec7
Simplify utf8 encoding in readfile
lib/file-manifest.js
lib/file-manifest.js
var pedestrian = require('pedestrian'); var $ = require('varity'); var async = require('async'); var path = require('path'); var _ = require('lodash'); var fs = require('fs'); var callerId = require('caller-id'); _.mixin(require('underscore.string')); exports.generate = function() { var args = [].slice.call(argumen...
JavaScript
0.000099
@@ -2961,167 +2961,8 @@ ) %7B%0A - // Node v0.8.x passes a string encoding, whereas nodev0.10 uses an object%0A var encoding = (/%5Ev0%5C.8/).test(process.version) ? 'utf8' : %7B encoding: 'utf8' %7D;%0A if @@ -2991,24 +2991,22 @@ e(file, -encoding +'utf8' , cb);%0A @@ -3052,16 +3052,14 @@ le, -encoding +'u...
d4b4159c130b5d9b3c359e771559ebce513b4204
swap the profile id of delegator ep1 and ep2
lib/initializers/init_controller.js
lib/initializers/init_controller.js
/* jshint node: true */ 'use strict'; var Q = require('q'), _ = require('busyman'), Ziee = require('ziee'), debug = require('debug')('zigbee-shepherd:init'); var Coordinator = require('../model/coord'), Coordpoint = require('../model/coordpoint'); var init = {}; /************************************...
JavaScript
0.000494
@@ -2360,17 +2360,17 @@ d: 0x010 -1 +4 , epId: @@ -2381,33 +2381,33 @@ %7B profId: 0x010 -4 +1 , epId: 2 %7D, %7B p
f1223a8013f56e47ff15e2afeb09c209ec12ff25
Fix choose and chooseIfNotGiven logic
lib/util/interaction._js
lib/util/interaction._js
/** * Copyright (c) Microsoft. 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 required by applicable law or ag...
JavaScript
0.000171
@@ -4054,24 +4054,28 @@ %7B%0A this. +cli. choose(value @@ -4472,18 +4472,8 @@ ose( -this.cli, valu
3fb8bcbb56b8915bef2e492524eb1bc8387d75aa
Add check for object type #44
lib/validators/patternProperties.js
lib/validators/patternProperties.js
module.exports = function patternProperties(schema, tpl) { const hasAdditionalProperties = Object.prototype.hasOwnProperty.call(schema, 'additionalProperties') && schema.additionalProperties !== true; const hasPatternProperties = Object.prototype.hasOwnProperty.call(schema, 'patternProperties'); if (!hasAddition...
JavaScript
0
@@ -534,16 +534,44 @@ tpl('if( +typeof %25s === %5C'object%5C' && !Array.i
f30a989d88ff92e6dc6ed5b24cd2431e3d4a7e1d
allow getCollection to decline to return a collection
lib/interval-scan.js
lib/interval-scan.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
@@ -3654,16 +3654,30 @@ r keys = + collection && Object. @@ -3702,24 +3702,32 @@ if (keys + && keys .length) %7B%0A
d8c6ade3625c8db12ffa02f8c8245dedd3b167fa
Fix reference to ipmitool powerStatus method in ipmi poller job
lib/jobs/ipmi-job.js
lib/jobs/ipmi-job.js
// Copyright 2014-2015, Renasar Technologies Inc. /* jshint: node:true */ 'use strict'; var di = require('di'); module.exports = ipmiJobFactory; di.annotate(ipmiJobFactory, new di.Provide('Job.Ipmi')); di.annotate(ipmiJobFactory, new di.Inject( 'Job.Base', 'JobUtils.Ipmitool', 'JobUtils.IpmiCommandParser...
JavaScript
0.000001
@@ -2864,20 +2864,24 @@ return -self +ipmitool .powerSt
c00a440f33a3c15c404d57b0a5ccb0e37b273465
Replace more deprecated .fin() promise methods
lib/jobs/ipmi-job.js
lib/jobs/ipmi-job.js
// Copyright 2014-2015, Renasar Technologies Inc. /* jshint: node:true */ 'use strict'; var di = require('di'); module.exports = ipmiJobFactory; di.annotate(ipmiJobFactory, new di.Provide('Job.Ipmi')); di.annotate(ipmiJobFactory, new di.Inject( 'Job.Base', 'JobUtils.Ipmitool', 'JobUtils.IpmiCommandParser...
JavaScript
0.000004
@@ -3452,32 +3452,36 @@ %7D)%0A .fin +ally (function() %7B%0A @@ -4340,32 +4340,36 @@ %7D)%0A .fin +ally (function() %7B%0A @@ -5183,16 +5183,20 @@ .fin +ally (functio
b0b20ecdf95b763edc5ac26c418195160d7d6cf8
add sourceURL for better js debug experience
lib/js/combineOne.js
lib/js/combineOne.js
var jsp = require('uglify-js').parser; var pro = require('uglify-js').uglify; var path = require('path'); var fs = require('fs'); var crypto = require('crypto') var removeBOMChar = require('../tools/removeBOMChar.js').removeBOMChar; var reg = /require\s*\(\s*(['|"])([\w\-\.\/]+)\1\s*\)\s*;?/gi; var combine = function...
JavaScript
0
@@ -511,66 +511,70 @@ -var ast = jsp.parse(str);%0A if (!config.debug) %7B +if (!config.debug) %7B%0A var ast = jsp.parse(str); %0A @@ -1023,30 +1023,21 @@ %7D);%0A +%0A - %7D%0A @@ -1082,16 +1082,20 @@ + 'beautif @@ -1119,24 +1119,28 @@ ...
5eaac21f928ccae7dc6548f1ae0454c40231d88e
Simplify cursor return paths
lib/models/cursor.js
lib/models/cursor.js
'use strict'; var util = require('util'); var HttpResult = require('../session/http_result'); var EventEmitter = require('events').EventEmitter; util.inherits(Cursor, EventEmitter); var _handleError = function(err, obj) { if (err) throw err; } function Cursor(obj, session, route, query, segmentKey) { this._obj ...
JavaScript
0.000256
@@ -622,41 +622,9 @@ y%5D;%0A - %0A - if (json.next_page) %7B%0A @@ -648,34 +648,32 @@ unction(item) %7B%0A - base.emit( @@ -703,37 +703,62 @@ SON(item));%0A - %7D); +%0A%0A if (json.next_page) %7B %0A base._loa @@ -810,135 +810,16 @@ - return %7B%7D;%0A %7D else %7...
33a39d759f7745081eeea96be5d2b9038fe5bf47
use 'layoutClass' property instead of custom code in BaseLayout.js
source/ui/BaseLayout.js
source/ui/BaseLayout.js
enyo.kind({ name: "enyo.BaseLayout", kind: enyo.Layout, constructor: function(inContainer) { this.inherited(arguments); inContainer.applyStyle("position", "relative"); }, reflow: function() { enyo.forEach(this.container.children, function(c) { if (c.fit !== null) { c.addRemoveClass("enyo-fit", c.fit)...
JavaScript
0
@@ -57,126 +57,38 @@ t,%0A%09 -constructor: function(inContainer) %7B%0A%09%09this.inherited(arguments);%0A%09%09inContainer.applyStyle(%22position%22, %22relative%22);%0A%09%7D +layoutClass: %22enyo-positioned%22 ,%0A%09r
b476a35c4cc344bc1972604521b29e8ef52ea70f
read design name from options
lib/optionssupply.js
lib/optionssupply.js
"use strict"; var path = require('path'); var _ = require('underscore'); var optionsBase = { getDetailReviewCount: function() { return 4; }, getNewPatientFrequency: function() { return 2000; }, getReviewFrequency: function() { return 1000; }, design: 'design1' };...
JavaScript
0
@@ -290,32 +290,8 @@ %7D -,%0A%0A design: 'design1' %0A%7D;%0A @@ -387,27 +387,8 @@ st', - //192.168.11.139', %0A%0A @@ -1237,17 +1237,17 @@ ength %3E -2 +3 ) %7B%0A @@ -1280,17 +1280,17 @@ ap%5Bargv%5B -2 +3 %5D%5D;%0A @@ -1467,24 +1467,62 @@ %7D%0A + options.design = arg...
a6765cfed9997055f693eec62ecbf646f0039479
Improve debug plugin
lib/plugins/debug.js
lib/plugins/debug.js
module.exports = function(bot, config) { bot.respond(/ping$/i, function(msg, reply) { reply("PONG"); }); bot.respond(/echo (.*)$/i, function(msg, reply) { reply(msg.match[1]); }); bot.respond(/time$/i, function(msg, reply) { reply(new Date()); }); bot.help("debug", function(msg, reply) { ...
JavaScript
0.000001
@@ -34,16 +34,17 @@ nfig) %7B%0A +%0A bot.re @@ -370,489 +370,7 @@ );%0A%0A - if (config) %7B%0A bot.join(config);%0A var oldConsoleLog = console.log;%0A console.log = function() %7B%0A var args = Array.prototype.slice.call(arguments);%0A args.map(function(elem) %7B%0A if (elem === null)...
ad21daf7f3e9cfd345b4e66d4b4923fa75ce81d0
Clean up publisher
lib/run-publisher.js
lib/run-publisher.js
var amqplib = require('amqplib'); function runPublisher(url, queueName, message) { // Publisher return amqplib.connect(url).then(function(conn) { var ok = conn.createChannel(); ok = ok.then(function(ch) { ch.assertQueue(queueName); ch.sendToQueue(queueName, new Buffer(message)); ch.sendTo...
JavaScript
0
@@ -1,39 +1,21 @@ -var amqplib = require('amqplib');%0A%0A +module.exports = func @@ -59,16 +59,117 @@ sage) %7B%0A + message = new Buffer(JSON.stringify(message));%0A function returnQueueName()%7B return queueName %7D%0A %0A // Pub @@ -188,15 +188,26 @@ urn +require(' amqplib +') .con @@ -229,16 +229,30 @...
f8c2f8a36204617a29cec9fe0300fda5d473c41e
make sure CI can fail
lib/runner/Runner.js
lib/runner/Runner.js
/* test runner bootstrap class */ define([ '../core/Base', '../core/Signature', './RunnerInterface', 'lodash', 'path', 'mocha', 'chai', 'sinon', 'sinon-chai' ], function (Base, Signature, RunnerInterface, _, npath, Mocha, chai, sinon, sinonChai) { var _super = Base.prototype; var mocha = n...
JavaScript
0.000001
@@ -1826,32 +1826,36 @@ top': function ( +code ) %7B%0A%0A var s @@ -1979,16 +1979,25 @@ ss.exit( +code %7C%7C 0 );%0A %7D
022a581c0268b94a70e9189f61739d68ac3c5251
update default interaction type to be "ecologicallyRelatedTo"
lib/searchContext.js
lib/searchContext.js
var extend = require('extend'); var inherits = require('inherits'); var EventEmitter = require('events').EventEmitter; var deep = require('deep'); module.exports = SearchContext; inherits(SearchContext, EventEmitter); function SearchContext(searchParameters) { if (!(this instanceof SearchContext)) return new Sear...
JavaScript
0
@@ -409,21 +409,29 @@ e: ' -interactsWith +ecologicallyRelatedTo ',%0A
bf160013c126d7f26578adc9229310f466e6da89
optimise toPath
lib/stores/object.js
lib/stores/object.js
/** * @author Gilles Coomans <gilles.coomans@gmail.com> * */ if (typeof define !== 'function') { var define = require('amdefine')(module); } define(["require", "../../deep", "./store", "./store-sheet"], function(require, deep) { //___________________________________________________________________________...
JavaScript
0.999999
@@ -4526,32 +4526,33 @@ // + console.log(%22dee @@ -4975,34 +4975,100 @@ deep -(root).setByPath(id, objec +.utils.toPath(root, id, object);%0A // console.log(%22post after set : %22, roo t);%0A
35db8e1906b7d6327429d350d263739b6a81351f
Add workaround for url hash in N.router, similar to query
lib/system/router.js
lib/system/router.js
// Extend Pointer class to add querystring parsing and formatting // 'use strict'; const _ = require('lodash'); const Pointer = require('pointer'); const querystring = require('querystring'); const util = require('util'); function Router(...args) { if (!(this instanceof Router)) return new R...
JavaScript
0
@@ -437,32 +437,34 @@ (url) %7B%0A let %5B + , urlpath, query @@ -454,32 +454,40 @@ , urlpath, query +, anchor %5D = url.split(' @@ -475,36 +475,66 @@ hor %5D = url. -split('?', 2 +match(/%5E(%5B%5E?#%5D*)(?:%5C?(%5B%5E#%5D*))?(?:#(.*))?$/ );%0A let res @@ -722,24 +722,150 @@ %0A %7D%0A %7D%0A%0A + if...
b3d4ca8606b7b7fdee36e25bd883f4d6db2b3b7f
fix path.resolve redundancy
lib/utils/mkdir-p.js
lib/utils/mkdir-p.js
var log = require("./log.js") , fs = require("graceful-fs") , path = require("path") , npm = require("../../npm.js") , exec = require("./exec.js") , uidNumber = require("./uid-number.js") , umask = process.umask() , umaskOrig = umask , addedUmaskExit = false , mkdirCache = {} module.exports = mkdir ...
JavaScript
0.000184
@@ -818,23 +818,8 @@ lve( -process.cwd(), ensu
f1645fd8390889ae0c5c5d837dd66bd66de13709
Update base.user.js
base.user.js
base.user.js
// I called this base.user.js in case this is the main script var ScratchUserscript = { MODE_DEV = true, // change to false in the release; use this flag to print data to console for debug, etc _parts: [], // insert urls for parts here _settingsHTML: $(""), _init: function(){ // run init tasks here Scrat...
JavaScript
0
@@ -97,18 +97,17 @@ MODE_DEV - = +: true, / @@ -257,13 +257,12 @@ ML: -$(%22%22) +null ,%0A%09_
3616ac637ae97972d1b10092412593227ef01441
add widget to search pill directive name
lib/widgets/index.js
lib/widgets/index.js
define([ 'angular', './inline-field/cam-widget-inline-field', './search-pill/search-pill', './search-pill/cam-query-component' ], function( angular, inlineField, searchPill, camQueryComponent ) { 'use strict'; var widgetModule = angular.module('camunda.common.widgets', []); widgetModule.direct...
JavaScript
0.000001
@@ -384,16 +384,22 @@ ive('cam +Widget SearchPi
98dd87b5852bc18d7ec589c63fccc3d2ffa18198
Fix process termination when write-sources fails writing a file.
lib/write-sources.js
lib/write-sources.js
/** * shuji (周氏) * https://github.com/paazmaya/shuji * * Reverse engineering JavaScript and CSS sources from sourcemaps * * Copyright (c) Juga Paazmaya <paazmaya@yahoo.com> (https://paazmaya.fi) * Licensed under the MIT license */ 'use strict'; const path = require('path'), fs = require('fs-extra'); // htt...
JavaScript
0.000007
@@ -999,16 +999,28 @@ else %7B%0A + try %7B%0A fs.w @@ -1066,16 +1066,122 @@ utf8');%0A + %7D%0A catch (e) %7B%0A console.log(%60Error while trying to write file %22$%7BoutputFilepath%7D%22%60, e);%0A %7D%0A %7D%0A%7D;%0A%0A
18dd25c5e69591dc2f960476fd0952a39479469a
Add user add methods.
src/store/modules/user.js
src/store/modules/user.js
import md5 from 'js-md5' import axios from 'axios' import * as types from '../mutation-types' const state = { user: {} } const getters = { isLogin: state => state.user.uid !== null && state.user.uid !== undefined, userInfo: state => state.user } const actions = { async userLogin ({ commit }...
JavaScript
0
@@ -1352,16 +1352,283 @@ r%0A %7D%0A + %7D,%0A async addUser (%7B commit %7D, user) %7B%0A try %7B%0A const res = await axios.post(%60https://api.limeishu.org.tw/user/new%60, user)%0A if (res.data.result !== 0) throw new Error(res.data.err)%0A return res.data.result%0A %7D catch (err) %7B%0A ...
ad5fbf82de5a470dbfae1a16aacb3441344b4b74
Generalise query prefix to 'user_sortable'
app/assets/javascripts/lib/util/user_sortable.js
app/assets/javascripts/lib/util/user_sortable.js
/* globals _ $ App I18n Sortable Quantity */ (function(window) { var optionTemplate = _.template( '<li data-id="<%= id %>">' + ' <%- name %>' + ' <span class="fa fa-bars"></span>' + ' <% if (capacity) { %>' + ' <div class="flexibility-options__capacity">' + ' <%- capacity...
JavaScript
0.999998
@@ -1417,39 +1417,29 @@ return ' -merit_flexibility_order +user_sortable _' + opt @@ -1874,31 +1874,21 @@ ce(/ -merit_flexibility_order +user_sortable _%7C_c
8a2274819df57a3e4640826185ff398be36c4039
Correct index hash
validator.js
validator.js
var fs = require('fs'); var crypto = require('crypto'); function checksum (str, algorithm, encoding) { return crypto .createHash(algorithm || 'md5') .update(str, 'utf8') .digest(encoding || 'hex') } var dver = "0.0.283"; console.log("BetterDiscord Validator v0.1"); var discordPath = pr...
JavaScript
0.000168
@@ -785,40 +785,40 @@ %22, %22 -5b70d6fac7f5b2761cb50233134f5084 +35CAB26E794CDA4123927F2DC932958B %22);%0A
4c9689f64469601dd5bfc5a7a121e235a8eea321
Remove error responsibility from APIResponse
apis/APIResponse.es6.js
apis/APIResponse.es6.js
import { TYPES, thingType, COMMENT, USER, LINK, MESSAGE, } from './thingTypes'; export default class APIResponse { constructor(meta={}) { this.meta = meta; this.results = []; this.errors; this.links = {}; this.comments = {}; this.users = {}; this.messages = {}; this.typ...
JavaScript
0.000002
@@ -195,25 +195,8 @@ %5B%5D; -%0A this.errors; %0A%0A @@ -441,61 +441,8 @@ %7D%0A%0A - setErrors(errors) %7B%0A this.errors = errors;%0A %7D%0A%0A ad
fb190579b3b5ab0d66826dc6b687faefa539c6f1
Replace all `@` with `%40`.
verbosity.js
verbosity.js
$(function () { var host, encoded; if (location.search.length) { var text = unescape(location.search.substring(1)); converter = new Showdown.converter(); $("#message").html(converter.makeHtml(text)); $("#editor").hide(); } else { $("#nav").hide(); $("#message").remove(); $("#editor").s...
JavaScript
0.000231
@@ -412,17 +412,18 @@ t + %22/?%22 +; %0A - %7D else @@ -475,16 +475,17 @@ osity/?%22 +; %0A %7D%0A $ @@ -627,16 +627,53 @@ encoded) +;%0A url = url.replace(/@/g, %22%2540%22); %0A tex @@ -725,17 +725,17 @@ **%5Cn%5Cn%22) - +; %0A loc @@ -803,16 +803,17 @@ %22 + text +; %0A %7D);%0A%7D
67d0314229ea2aac9106bb927a15e074daafe7d1
Update renderer.js
app/angular/renderer.js
app/angular/renderer.js
module.exports = require('./dist/cjs/renderer');
JavaScript
0.000001
@@ -30,12 +30,8 @@ ist/ -cjs/ rend
9f1375355d20c07f9869473df7ef2298a17e51ac
Add condition to show specific terms only if resource have it
app/pages/resource/resource-info/ResourceInfo.js
app/pages/resource/resource-info/ResourceInfo.js
import upperFirst from 'lodash/upperFirst'; import PropTypes from 'prop-types'; import React from 'react'; import Col from 'react-bootstrap/lib/Col'; import Panel from 'react-bootstrap/lib/Panel'; import Row from 'react-bootstrap/lib/Row'; import injectT from '../../../i18n/injectT'; import WrappedText from '../../../...
JavaScript
0
@@ -1045,32 +1045,71 @@ %3C/Panel%3E%0A + %7Bresource.specificTerms && (%0A %3CPanel d @@ -1167,38 +1167,42 @@ s')%7D%3E%0A + %3CRow%3E%0A + %3CCol @@ -1243,39 +1243,43 @@ /Col%3E%0A + + %3C/Row%3E%0A + %3C/Panel%3E @@ -1271,32 +1271,43 @@ ...
b291cfbba0679592b1cd704d5ca0b30c9bdd7111
add direct share link to embed context
app/containers/Embed.js
app/containers/Embed.js
import React, { Component, PropTypes } from 'react' import { connect } from 'react-redux' import { getSelectedColumnDef } from '../reducers' import { loadMetadata, loadColumnProps, loadQueryStateFromString } from '../actions' import { ButtonToolbar, Button } from 'react-bootstrap' import slugify from 'underscore.string...
JavaScript
0
@@ -3235,16 +3235,91 @@ asetPath + + '/chart_experimental?q=' + encodeURIComponent(ownProps.location.query.q) %0A retur @@ -3820,32 +3820,8 @@ Link - + '/chart_experimental' ,%0A
00cff83151925bfd5a3519510f987065e6a7122e
Add NOR and NOT operators
app/helpers/courses.es6
app/helpers/courses.es6
'use strict'; import * as _ from 'lodash' import {courseCache} from './db' import buildQueryFromString from './queryStuff' function getCourse(clbid) { let course = courseCache[clbid] if (!course) { console.warn('course retrieval failed for: ' + clbid) } return _.cloneDeep(course) } function getCourses(clbids...
JavaScript
0.000149
@@ -2345,16 +2345,52 @@ '$OR';%0A +%09%09%09%09let NOR = values%5B0%5D === '$NOR';%0A %09%09%09%09let @@ -3117,32 +3117,81 @@ ternalMatches);%0A +%09%09%09%09if (NOR) result = !_.some(internalMatches);%0A %09%09%09%09if (AND) re @@ -3248,46 +3248,30 @@ t = -_.map(internalMatches, (bool) =%3E !bool +!_.all(int...
db59482aab444ae66f276d2de432636530f0c9bd
Remove unused ui.inditerminate module form arethusa.core
app/js/arethusa.core.js
app/js/arethusa.core.js
/** * @ngdoc overview * @name arethusa.core * * @description * Module of Arethusa's core functionality */ angular.module('arethusa.core', [ 'angulartics', 'angulartics.google.analytics', 'arethusa.util', 'ngResource', 'ngCookies', 'ngAnimate', 'duScroll', 'pascalprecht.translate', 'toaster', '...
JavaScript
0
@@ -374,30 +374,8 @@ n',%0A - 'ui.indeterminate',%0A 'L
e1883f468fed38a579e03268c39d611966069855
Version bump beta
app/js/coinpocketapp.js
app/js/coinpocketapp.js
var CoinPocketApp = (function($, self) { self.VERSION = 'v0.6.1'; $('.coin-pocket-version').text(self.VERSION); self.Models = {}; self.Views = {}; self.Controllers = {}; $(document).off('.data-api'); // disable bootstrap data api return self; })(jQuery, {});
JavaScript
0
@@ -57,12 +57,18 @@ = 'v -0.6. +1.0.0-beta 1';%0A
a9cf9f2854df0ce075abf29f4d1060d99294ab00
Include all end to end tests
wdio.conf.js
wdio.conf.js
require('dotenv').config(); require('babel-register')(); exports.config = { // // ================== // Specify Test Files // ================== // Define which test specs should run. The pattern is relative to the directory // from which `wdio` was called. Notice that, if you are calling `wdio` from an ...
JavaScript
0
@@ -533,29 +533,9 @@ /**/ -healthcare.assessment +* .spe
267b34ea02ff6ffe54160a5a42da13aa166ff4a8
add alwaysOnTop: false for main window
app/main.development.js
app/main.development.js
import { app, BrowserWindow, Tray, Menu } from 'electron'; import MenuBuilder from './menu'; let mainWindow = null; let preloader = null; global.globalObj = { id: 123, launch: null, closeFunc: function () { if (this.launch == true) { if (mainWindow) mainWindow.hide(); } else { mainWindow = nu...
JavaScript
0.000728
@@ -1834,24 +1834,48 @@ serWindow(%7B%0A + alwaysOnTop: false,%0A width: 8
59475f21e4c08bc3f6cc2fb0c44f8ec8569d6994
Add the fetch on the model with promise, plus convert Model to PromiseModel with id.
app/models/promisify.js
app/models/promisify.js
/*global Backbone, Promise*/ // Backbone model with **promise** CRUD method instead of its own methods. var PromiseModel = Backbone.Model.extend({ //Ovverride the save method on the model in order to Return a promise. save: function saveModel() { var model = this; var method = this.isNew() ? 'create' : 'update'; ...
JavaScript
0
@@ -19,19 +19,22 @@ Promise +, _ */%0A - // Backb @@ -681,16 +681,395 @@ %09%7D%0A%09%09);%0A +%09%7D,%0A%09fetch: function promiseFetchModel(options) %7B%0A%09%09options = options %7C%7C %7B%7D;%0A%09%09var model = this;%0A%09%09console.log('promiseFetchModel', model);%0A%09%09return new Promise(function(resolve,...
c4fb1186991dd4efef2724aededf3a929ad59336
stop search spinner when searchfield is empty
app/views/SearchView.js
app/views/SearchView.js
import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import purebem from 'purebem'; import promise from 'promise'; import moment from 'moment'; import { firebase, getUser } from 'app/firebase'; import { filter } from 'app/lodash'; import { debouncer, getStatus, isEmpty } from 'app/utils';...
JavaScript
0.000001
@@ -1543,16 +1543,36 @@ ults: %5B%5D +, isSearching: false %7D);%0A
69e776adf11b6e61e05b09eba9d44723f9fd056f
Allow noCache as a fetch option
src/authenticated-api.js
src/authenticated-api.js
// Copyright (c) CBC/Radio-Canada. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // https://github.com/github/fetch import ko from 'knockout'; import configs from 'koco-configs'; import urlUtilities from 'koco-url-utilities'; import httpUti...
JavaScript
0.000001
@@ -1286,22 +1286,39 @@ ns) %7B%0A -return +const combinedOptions = Object. @@ -1365,16 +1365,221 @@ PTIONS); +%0A%0A if (fetchOptions && fetchOptions.noCache) %7B%0A combinedOptions.headers.append('pragma', 'no-cache');%0A combinedOptions.headers.append('cache-control', 'no-cache');%0A %7D%0A%0A ret...
50253d65829aee98cd522ef8b98e03b567462096
make author widget responsive
src/author.controller.js
src/author.controller.js
/* * The MIT License * * Copyright (c) 2015, Sebastian Sdorra * * 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, ...
JavaScript
0
@@ -1717,24 +1717,48 @@ tom%22%0A %7D +,%0A responsive: true %0A %7D%0A%0A
98af308ea5ff9ec6a2b03768cd9b6bc6b28af73d
handle empty keyRules
cli/lib/documentation-generator/generators/apidoc/index.js
cli/lib/documentation-generator/generators/apidoc/index.js
const { flatten, pipe, filter, map, when, compose, isNil, not, join, defaultTo, concat, anyPass, isEmpty, head, prop, ifElse, always, mergeAll, invoker, } = require('ramda'); const rl = require('readline-sync'); const fs = require('fs'); const { resolve: pathResolve, } = require(...
JavaScript
0.000001
@@ -3275,24 +3275,45 @@ keysRules +: validationKeysRules ,%0A skipVa @@ -3335,24 +3335,71 @@ validation; +%0A const keysRules = validationKeysRules %7C%7C %5B%5D; %0A%0A return c
80925f30bc94a57206a2edc80f4e5c78493ae403
Update index.js
www/index.js
www/index.js
///////////////////////////////////////////////////////////////////////////////// // Copyright (c) Autodesk, Inc. All rights reserved // Written by Philippe Leefsma 2014 - ADN/Developer Technical Services // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and with...
JavaScript
0.000002
@@ -2399,34 +2399,370 @@ // %7D%0A +%0A // + // Allows different urn to be passed as url parameter%0A// var paramUrn = Autodesk.Viewing.Private.getParameterByName('urn');%0A// var urn = (paramUrn !== '' ? paramUrn : defaultUrn);%0A// %0A//%0A// if (urn...
95192b2f7b3d465481f0efde4daadadc460ebf2d
update to new bindingMode API
src/bindable-property.js
src/bindable-property.js
import core from 'core-js'; import {hyphenate} from './util'; import {ONE_WAY,TWO_WAY,ONE_TIME} from 'aurelia-binding'; function getObserver(behavior, instance, name){ var lookup = instance.__observers__; if(lookup === undefined){ lookup = behavior.observerLocator.getObserversLookup(instance); behavior.en...
JavaScript
0
@@ -67,32 +67,19 @@ rt %7B -ONE_WAY,TWO_WAY,ONE_TIME +bindingMode %7D fr @@ -688,15 +688,26 @@ %7C%7C -ONE_WAY +bindingMode.oneWay ;%0A
98e479ad621197db2335340cc7bea052e658bf76
set default if not undefined
src/bindable-property.js
src/bindable-property.js
import core from 'core-js'; import {hyphenate} from './util'; import {ONE_WAY,TWO_WAY,ONE_TIME} from 'aurelia-binding'; function getObserver(behavior, instance, name){ var lookup = instance.__observers__; if(lookup === undefined){ lookup = behavior.observerLocator.getObserversLookup(instance); behavior.en...
JavaScript
0.000011
@@ -2792,24 +2792,38 @@ defaultValue + !== undefined )%7B%0A
d04b58c09c084a7eb93287494dca7d8cc471b183
simplify init
zprogress.js
zprogress.js
// zprogress (c) 2013 Thomas Fuchs // MIT-licensed - https://github.com/madrobby/zprogress ;(function($){ var initialized = false, html = '<style>#zprogress{position:fixed;top:0;left:0;width:100%;height:3px;opacity:0;pointer-events:none;-webkit-pointer-events:none;z-index:1000}'+ '#zprogress_indicato...
JavaScript
0.999602
@@ -110,42 +110,15 @@ var -initialized = false,%0A html =%0A - @@ -264,18 +264,16 @@ %7D'+%0A - '#zprogr @@ -353,18 +353,16 @@ %7D'+%0A - '%3C/style @@ -365,18 +365,16 @@ tyle%3E'+%0A - '%3Cdi @@ -503,50 +503,24 @@ if( -initialized) return%0A initialized = true +$wrapper) ret...
5436d34f333d345bf1c59520fd6ef33404bd6ff3
Add use strict for firefox
src/classes/PugRouter.js
src/classes/PugRouter.js
/* * @author Nektro (Sean Denny) * Copyright (c) 2017 */ class PugRouter { constructor(r, pa) { this.root = r; this.pages = pa; this.pages.push('/'); this.cache = new Map(); window.addEventListener('hashchange', (e) => { this.gotoPage(e.newURL.substring(e.newUR...
JavaScript
0.000001
@@ -1,8 +1,22 @@ +'use strict';%0A /*%0A * @a
4803cc8f1e784e85ac1e1a5c8152ef215f4f6436
Update canvasAnimation.js
javascript/canvasAnimation.js
javascript/canvasAnimation.js
// Get Canvas var canvas = document.getElementById("canvas"), ctx = canvas.getContext("2d"), width = 512, height = 480; canvas.tabIndex = 1; canvas.width = width; canvas.height = height; var state = "idle"; this.idleSprite = new Image(); this.idleSprite.src = "../image/png/joshua-sprite-idle.png"; this.idleSpr...
JavaScript
0.000001
@@ -209,21 +209,16 @@ idle%22;%0A%0A -this. idleSpri @@ -235,21 +235,16 @@ mage();%0A -this. idleSpri @@ -291,21 +291,16 @@ e.png%22;%0A -this. idleSpri @@ -319,21 +319,16 @@ h = 28;%0A -this. idleSpri @@ -348,21 +348,16 @@ t = 40;%0A -this. idleSpri @@ -372,21 +372,16 @@ s = 12;%0A -this. idleSpri @@ -431,...
6247633ece6c0596a5d602555e91ff489841a978
enable camelCase for css-loader
css-modules.js
css-modules.js
'use strict'; module.exports = { plugins: ['css-modules'], rules: { // https://github.com/atfzl/eslint-plugin-css-modules 'css-modules/no-unused-class': 'error', 'css-modules/no-undef-class': 'error' } };
JavaScript
0.000001
@@ -163,16 +163,17 @@ s': +%5B 'error', %0A @@ -168,16 +168,38 @@ 'error', + %7B camelCase: true %7D%5D, %0A 'cs @@ -225,23 +225,46 @@ class': +%5B 'error' +, %7B camelCase: true %7D%5D %0A %7D%0A%7D;%0A
11d1c6000115cf1fd3a6ed5d48e613c4551982b6
enable RTL plugin during coverage
css.webpack.js
css.webpack.js
const path = require('path'); const config = require('./config'); const ExcludeAssetsPlugin = require('webpack-exclude-assets-plugin'); const ManifestPlugin = require('webpack-manifest-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const WebpackRTLPlugin = require('webpack-rtl-plugin'); cons...
JavaScript
0
@@ -2213,16 +2213,32 @@ duction +%7C%7C env.coverage ? %5Bnew W
ef89cd58365fecbbd48294b2b07cee760738b669
add tests for play.
src/main/webapp/inc/js/app/tests/game/ctrl.spec.js
src/main/webapp/inc/js/app/tests/game/ctrl.spec.js
'use strict'; describe('game', function () { var $scope, controller, $httpBackend; var square; var cardName = 'King'; var cardColor = 'Red'; var player1 = {name: "Toto", id: "0"}; var player1Cards = [ {name: "King", color: "Red"}, ]; var player2 = {name: "Tata", id: "1"}; ...
JavaScript
0
@@ -2906,16 +2906,98 @@ %7D));%0A%0A + beforeEach(function () %7B%0A alert = jasmine.createSpy('alert');%0A %7D);%0A%0A %0A it( @@ -4293,24 +4293,857 @@ );%0A %7D);%0A%0A + describe('play', function () %7B%0A it('cannot, no card selected', function () %7B%0A $scope.highlight...
a6b4c05cf9f02da63afb7afdcc3941e530c58381
Fix mailbox password type password
packages/components/containers/login/UnlockForm.js
packages/components/containers/login/UnlockForm.js
import React from 'react'; import PropTypes from 'prop-types'; import { c } from 'ttag'; import { Input, Label } from 'react-components'; const UnlockForm = ({ password, setPassword }) => { return ( <> <Label htmlFor="password">{c('Label').t`Mailbox password`}</Label> <Input ...
JavaScript
0.991851
@@ -332,12 +332,16 @@ pe=%22 -text +password %22%0A
d049297ef7a301a073ded5ef50a4d3f615f87a96
Use "computedUnit" CP macro
ember/app/services/units.js
ember/app/services/units.js
import Ember from 'ember'; /** * A static dictionary of the supported units with its * conversion factors and default decimal places. * @const * @type {Object} */ const UNITS = { // Length 'm': [1, 0], 'ft': [3.28084, 0], 'km': [1 / 1000., 0], 'NM': [1 / 1852., 0], 'mi': [1 / 1609.34, 0], // Speed ...
JavaScript
0.000001
@@ -968,75 +968,333 @@ Unit -: 'km',%0A speedUnit: 'km/h',%0A liftUnit: 'm/s',%0A altitudeUnit: 'm' +Index: 1,%0A speedUnitIndex: 1,%0A liftUnitIndex: 0,%0A altitudeUnitIndex: 0,%0A%0A distanceUnit: computedUnit('distanceUnits', 'distanceUnitIndex'),%0A speedUnit: computedUnit('speedUnits', 'speedUnitIndex'),%...
9ca3c413a91992e99decd5d5ae56a43a3864fa10
add user list page redirect to user info page
Frontend/src/index/user_list_item.js
Frontend/src/index/user_list_item.js
"use strict"; import React from 'react'; import { render } from 'react-dom'; import WeUI from 'react-weui'; const {Cell, CellHeader, CellBody} = WeUI; export default class UserListItem extends React.Component { state = { user: this.props.user }; handleClick(e){ //@TODO 跳转到详情页 //...
JavaScript
0.000001
@@ -294,20 +294,13 @@ // -@ + TODO - %E8%B7%B3%E8%BD%AC%E5%88%B0%E8%AF%A6%E6%83%85%E9%A1%B5 %0A @@ -310,61 +310,88 @@ // -location.href = window._BASE_ + '/?uid=' + this.state + may be have a better way...%0A window.location.hash = '#/user/'+this.props .use
b8c41a8908cc2b699f91326befddbd42746fc42d
change port,db,redis config to static, not affected by cache
manager/ConfigManager.js
manager/ConfigManager.js
"use strict"; const SystemManager = require('./SystemManager'), __ = require('../libs/global_function'), _ = require('lodash'); /** * class ConfigManager extends SystemManager */ class ConfigManager extends SystemManager { /** * Create ConfigManager object * @param app - ArrowApplication *...
JavaScript
0
@@ -2042,16 +2042,129 @@ (data);%0A + delete conf.port;%0A delete conf.db;%0A delete conf.redis;%0A
68c487549b1ed16d3c0ca5a1a448759943eba775
fix requires
frameworks/js/FlexJS/src/org/apache/flex/utils/ViewSourceContextMenuOption.js
frameworks/js/FlexJS/src/org/apache/flex/utils/ViewSourceContextMenuOption.js
/** * 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, software * distribu...
JavaScript
0.000001
@@ -625,16 +625,73 @@ ion');%0A%0A +goog.require('org_apache_flex_events_EventDispatcher');%0A%0A %0A%0A/**%0A *
d15ee0fc3a60acf351b60df49186b972182b9653
translate to french
src/editor/extensions/ext-shapes/locale/fr.js
src/editor/extensions/ext-shapes/locale/fr.js
export default { loading: 'Loading...', categories: { basic: 'Basic', object: 'Objects', symbol: 'Symbols', arrow: 'Arrows', flowchart: 'Flowchart', animal: 'Animals', game: 'Cards & Chess', dialog_balloon: 'Dialog balloons', electronics: 'Electronics', math: 'Mathematical', ...
JavaScript
0.999999
@@ -26,15 +26,18 @@ g: ' -Loading +Chargement ...' @@ -70,17 +70,19 @@ c: 'Basi -c +que ',%0A o @@ -93,17 +93,16 @@ t: 'Obje -c ts',%0A @@ -117,16 +117,17 @@ 'Symbol +e s',%0A @@ -138,13 +138,14 @@ w: ' -Arrow +Fl%C3%A8che s',%0A @@ -194,10 +194,10 @@ nima -ls +ux ',%0A @@ -213,17 +213,19 @@ 'C...
76963b69cbd24ea467e489508982604d0200e302
move caret on autocompleted/selected
demo/bel-autocomplete.js
demo/bel-autocomplete.js
$(document).ready(function() { // Alternate autocompletion display including the "type" of completion, e.g.: // p() increases p() (template) - Protein-Protein Interaction (increase) //var COMPLETION_TEMPLATE = // '<p>{{value}} (<em>{{type}}</em>) - <strong>{{label}}</strong></p>'; // Default autocompleti...
JavaScript
0
@@ -1654,26 +1654,16 @@ selected -Completion (event, @@ -2351,52 +2351,154 @@ %7D) -.on(%22typeahead:selected%22, selectedCompletion +;%0A $('#bel-expressions .typeahead').on(%22typeahead:selected%22, selected);%0A $('#bel-expressions .typeahead').on(%22typeahead:autocompleted%22, selected );%0A
6224b1d9ac2b1b38795dccc8c4fa579116894963
add description
demo/create.gridcells.js
demo/create.gridcells.js
window.demoDescription = "."; (function() { Pts.namespace( this ); var space = new CanvasSpace("#pt").setup({bgcolor: "#123", resize: true, retina: true}); var form = space.getForm(); //// Demo code --- var pts = []; var follower = new Pt(); // follows the pointer space.add({ start: (bound) => ...
JavaScript
0.000004
@@ -19,16 +19,137 @@ tion = %22 +A retro-style dazzling effect created by a grid whose cells change color and size based on their distances to the pointer .%22;%0A%0A(fu
0d4f2660f10d5aebe8c621cccf5311db05a35553
Add commas
web/js/coge/utils.js
web/js/coge/utils.js
/* global window, document, coge*/ var coge = window.coge = (function(ns) { var waitToSearchTimer; ns.utils = { ascending: function(a, b) { return a < b ? -1 : a > b ? 1 : 0; }, descending: function(a, b) { return a > b ? -1 : a < b ? 1 : 0; }, op...
JavaScript
0.999809
@@ -4470,22 +4470,19 @@ (x) %7B%0A%09%09 -return +x = x.toStr @@ -4490,47 +4490,119 @@ ng() -.replace(/%5CB(?=(%5Cd%7B3%7D)+(?!%5Cd))/g, %22,%22); +;%0A%09%09var pattern = /(-?%5Cd+)(%5Cd%7B3%7D)/;%0A%09%09while (pattern.test(x))%0A%09%09%09x = x.replace(pattern, %22$1,$2%22);%0A%09%09return x;%09%09 %0A%09%7D%0A
1b0334cb0ac872ad4f460685c92a85619c0bb9d9
Update eslint rule
.eslintrc.js
.eslintrc.js
module.exports = { extends: 'airbnb-base', rules: { 'comma-dangle': ['error', 'never'], semi: ['error', 'never'] }, env: { jest: true } }
JavaScript
0
@@ -89,16 +89,94 @@ ever'%5D,%0A + 'object-curly-newline': %5B'error', %7B multiline: true, consistent: true %7D%5D,%0A semi
65127e47618e4e475140e1f1a94704caf6426ab4
Update ".eslintrc.js".
.eslintrc.js
.eslintrc.js
module.exports = { env: { browser: true, es6: true, node: true, }, extends: [ 'eslint:recommended', 'airbnb-base', ], };
JavaScript
0
@@ -59,24 +59,8 @@ ue,%0A - node: true,%0A %7D,
2f3e2eee707b93f80e95db9be5e6260efde70c0f
Fix off-by-one in tree dialog highlight.
web/js/treedialog.js
web/js/treedialog.js
/* * Copyright 2018 The CodeWorld Authors. 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 required...
JavaScript
0
@@ -2966,16 +2966,17 @@ n&&(id %3E += p.pictu
72c025c98b29f6b17f0ebae5d994703da0a176bc
Increase max length to 120
.eslintrc.js
.eslintrc.js
module.exports = { root: true, env: { browser: true, node: true, es6: true, }, rules: { 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-return-await': ['error'], 'require-jsdoc': ['of...
JavaScript
0.999991
@@ -326,14 +326,16 @@ +' indent +' : %5B' @@ -346,16 +346,47 @@ r', 2%5D,%0A + 'max-len': %5B'error', 120,%5D%0A %7D,%0A%0A
7192fc434b0f3d63428b446863a2b8b061e00ae0
Remove incorrect type annotation of 'wrapIfNotElement()'
packages/core/src/utils/wrapIfNotElement.js
packages/core/src/utils/wrapIfNotElement.js
import React from 'react'; /** * Wrap the passed-in `content` with a component if it's not a React element, * to make sure the result will always be a HTML tag. * * @param {ReactChildren} content * @param {Component} Wrapper * @param {String} prop - pass `content` into specified `prop`. Default via 'children'. ...
JavaScript
0.003038
@@ -161,187 +161,8 @@ ag.%0A - *%0A * @param %7BReactChildren%7D content%0A * @param %7BComponent%7D Wrapper%0A * @param %7BString%7D prop - pass %60content%60 into specified %60prop%60. Default via 'children'.%0A *%0A * @return %7BElement%7D%0A */%0A
ce76ff2c7021110ab9d7ce00665426d513a0cb16
Bump Firebase JS SDKs to 8.6.1 (#2071)
web/scripts/frame.js
web/scripts/frame.js
/** * Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file * for details. All rights reserved. Use of this source code is governed by a * BSD-style license that can be found in the LICENSE file. */ replaceJavaScript = function (value) { // Remove the old node. var oldNode = document.g...
JavaScript
0
@@ -1763,33 +1763,33 @@ om/firebasejs/8. -4 +6 .1/firebase-app. @@ -1855,33 +1855,33 @@ om/firebasejs/8. -4 +6 .1/firebase-auth @@ -1952,33 +1952,33 @@ om/firebasejs/8. -4 +6 .1/firebase-data @@ -2469,17 +2469,17 @@ asejs/8. -4 +6 .1/fireb
a79ac2ff9149f3adf3cbfd25322dbdfaa2adda13
Update eslint config
.eslintrc.js
.eslintrc.js
module.exports = { parser: '@typescript-eslint/parser', extends: ['plugin:@typescript-eslint/recommended', 'standard', 'standard-react', 'prettier'], plugins: ['@typescript-eslint', 'simple-import-sort'], rules: { 'simple-import-sort/sort': 'error', }, env: { browser: true, }, globals: { __D...
JavaScript
0.000001
@@ -201,16 +201,34 @@ rt-sort' +, 'unused-imports' %5D,%0A rul @@ -242,31 +242,168 @@ ' -simple-import-sort/sort +react/react-in-jsx-scope': 'off',%0A 'simple-import-sort/imports': 'error',%0A 'simple-import-sort/exports': 'error',%0A 'unused-imports/no-unused-imports-ts ': ' @@ -553,12 +553,14 @@ n: ...
c7d473682fdde63ac8ac20cac408fd989c0a4cdc
set up redux form component - not working
src/admin/dumb_components/sub_due_section.js
src/admin/dumb_components/sub_due_section.js
import React from 'react' export default ({ fetch_sub_due, component, checker, ...props }) => { const send_request = (e) => { e.preventDefault(); const [ start, end ] = e.target fetch_sub_due({ start: start.value, end: end.value }) } return ( <div> {checker ? component(props) ...
JavaScript
0
@@ -20,16 +20,69 @@ react'%0A%0A +import %7B check_tests, date %7D from ('app/validate')%0A%0A%0A export d @@ -375,140 +375,656 @@ : %3C -form className='date-boundaries-form' onSubmit=%7Bsend_request%7D%3E%0A %3Cinput type='text' place +SubDueDates%0A fields=%7Bfields%7D%0A onSubmi...
190f3b312bfd0095143e38f0e4d4a3c169428c91
fix closure typechecking rules
packages/eslint-plugin-googlejs/Makefile.js
packages/eslint-plugin-googlejs/Makefile.js
const closurePackage = require('google-closure-compiler'); const ClosureCompiler = closurePackage.compiler; /* eslint-disable googlejs/camelcase */ var compiler = new ClosureCompiler( { js: [ 'index.js', './lib/**.js', ], externs: [ './externs/externs-eslint.js', './externs/exter...
JavaScript
0.000008
@@ -217,16 +217,17 @@ ,%0A +%22 './lib/* @@ -227,20 +227,23 @@ ./lib/** +/* .js' +%22 ,%0A %5D, @@ -469,11 +469,13 @@ or: +%22 '*' +%22 ,%0A @@ -664,20 +664,20 @@ s_only: -null +true ,%0A // @@ -955,21 +955,282 @@ pe_inf: -null, +true,%0A // We need LOOSE because we're ignoring commonjs m...
c90604d26466366ffd6f7736684680c3d6ba91da
Clarify why rules are used
.eslintrc.js
.eslintrc.js
module.exports = { "env": { "amd": true, "browser": true, "mocha": true, "node": true }, "parserOptions": { "ecmaVersion": 6 }, "globals": { "Promise": "readonly", "WebMidi": "readonly", "expect": "readonly" }, "extends": ["eslint:recommended", "prettier"], "rules": ...
JavaScript
0.000727
@@ -308,18 +308,274 @@ %0A%0A -%22rules%22: %7B +// The idea here is to stick to the rules defined by Prettier (https://prettier.io/) and only make%0A // exceptions in ESLint when absolutely necessary.%0A %22rules%22: %7B%0A%0A // Rules to align ESLint with Prettier (even though we are already using eslint-conf...
eb8d8ac0adbaa6c7a70be60f65631495e812a452
Update vertex.js
draw/shapes/vertex.js
draw/shapes/vertex.js
if(!Draw.vertex) { Draw.vertex = function(x, y) { if(!Canvas.configured) { console.warn("KAPhy Warning - You must use Canvas.configure(); before you can draw!"); return; } if(!Draw.shapeOn) { console.warn("KAPhy Warning - You can only use Draw.vertex() in shape mode."); return...
JavaScript
0.000001
@@ -352,20 +352,46 @@ .lineTo( -x, y +Canvas.getX(x), Canvas.getY(y) );%0A %7D;%0A
eaf5fd2fe5b5c1c8a64a5403ed6b63e9e4399884
Write DOM load check more efficiently
public/assets/enhancements.js
public/assets/enhancements.js
// Check if DOM has already loaded as we're loading async if(['interactive', 'complete'].indexOf(document.readyState) >= 0) { init(); } else { document.addEventListener('DOMContentLoaded', init); } // When DOM is ready function init() { }
JavaScript
0
@@ -55,11 +55,8 @@ ync%0A -if( %5B'in @@ -116,32 +116,23 @@ %3E= 0 -) %7B %0A + ? init() -;%0A%7D else %7B %0A + : doc @@ -180,18 +180,16 @@ , init); -%0A%7D %0A%0A// Whe
fc9158caf023a75014ed98e04f09c8ece8074a5a
Disable start block control during trace
web/static/client.js
web/static/client.js
/** * @file Client logic for the ethtaint web interface. * @module web/client */ (() => { 'use strict' // Constants const portIo = 7403 $(() => { // State let tracing = false // Connect to server const socket = io.connect('http://localhost:' + portIo) // Counts let tainted = 0 ...
JavaScript
0.000001
@@ -874,24 +874,60 @@ led = false%0A + startBlockEl.disabled = false%0A traceE @@ -1049,24 +1049,59 @@ bled = true%0A + startBlockEl.disabled = true%0A traceE
f0d86f3a72c8916de935c96991bc62d2cda3bd6f
Fix error messages
lib/node_modules/@stdlib/utils/do-while-each-right/lib/do_while_each_right.js
lib/node_modules/@stdlib/utils/do-while-each-right/lib/do_while_each_right.js
'use strict'; // MODULES // var isCollection = require( '@stdlib/assert/is-collection' ); var isFunction = require( '@stdlib/assert/is-function' ); // MAIN // /** * While a test condition is true, invokes a function once for each element in a collection, iterating from right to left. * * ## Notes * * * For dynamic...
JavaScript
0.000021
@@ -1952,12 +1952,13 @@ nt. -Thir +Secon d ar @@ -2084,37 +2084,36 @@ input argument. -Secon +Thir d argument must
819eddfe8c7cc8000ec8c49ba9b7c19dff0403e9
Update scripts.js
public/javascripts/scripts.js
public/javascripts/scripts.js
function getDataFromGithub(username) { var url = "https://api.github.com/search/issues?q=author:" + username + "+type:pr+created:2016-10-01..2016-10-31"; var results = $("#results"); results.html(""); var loading = $("#loading"); loading.css("display", "block"); $.ajax(url, { success:...
JavaScript
0.000002
@@ -489,24 +489,69 @@ s.length);%0A%0A + if(data.total_count!=0)%7B%0A @@ -611,24 +611,28 @@ + $.ajax(item. @@ -665,32 +665,36 @@ + + success: functio @@ -742,32 +742,36 @@ + results.append(%22 @@ -774,24 +774,28 @@ nd(%...
4e7c97bd31dfdc98fecb71ea589593315f909b69
Fix etherpad-lite button
public/javascripts/tinymce.js
public/javascripts/tinymce.js
noosfero.tinymce = { defaultOptions: { theme: "modern", relative_urls: false, remove_script_host: false, extended_valid_elements: "applet[style|archive|codebase|code|height|width],comment,iframe[src|style|allowtransparency|frameborder|width|height|scrolling],embed[title|src|type|height|width],audio[...
JavaScript
0.000002
@@ -578,16 +578,146 @@ ptions)%0A + // just init. initing this is necessary to add some buttons to the toolbar%0A tinymce.init(options)%0A // apply to selector%0A jQue
a0b1b1566aaba9f9f534332097bddda21d8cf70c
change port 3000
benchmark.js
benchmark.js
'use strict' /** * Created by tungtouch on 2/9/15. */ var dgram = require('dgram'); var message = new Buffer("Some bytes:"); var client = dgram.createSocket("udp4"); var async = require('async'); var max = 10000; var arr = []; for (var i = 0; i < max; i++) { arr.push(i); } var q = async.queue(function(index, ...
JavaScript
0.000002
@@ -202,18 +202,17 @@ r max = -10 +3 000;%0Avar
fabd975362595b97d91bd0a48683512fed549d71
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
@@ -654,9 +654,9 @@ eqs -! += = 10 @@ -658,24 +658,124 @@ == 10000) %7B%0A + console.log(colors.blue(%22Result benchmark: %22, colors.bold(totalReqs / second)));%0A %7Delse%7B%0A setI @@ -1052,108 +1052,8 @@ 0);%0A - %7Delse%7B%0A console.log(colors.blue(%22Result benchmark: %22, color...
9767057c27e3e7c683911f15f4a12c7aa38244b8
fix spelling
js/foundation.smoothScroll.js
js/foundation.smoothScroll.js
import $ from 'jquery'; import { GetYoDigits } from './foundation.core.utils'; import { Plugin } from './foundation.core.plugin'; /** * SmoothScroll module. * @module foundation.smoothScroll */ class SmoothScroll extends Plugin { /** * Creates a new instance of SmoothScroll. * @class * @name SmoothScroll...
JavaScript
0.02338
@@ -1088,17 +1088,16 @@ ckListen -n er = thi @@ -1190,33 +1190,32 @@ _linkClickListen -n er);%0A thi @@ -1282,33 +1282,32 @@ _linkClickListen -n er);%0A %7D%0A%0A @@ -2961,17 +2961,16 @@ ckListen -n er)%0A @@ -3053,17 +3053,16 @@ ckListen -n er);%0A
347b1577a1a206a3795434b8d8d48429572b00eb
Fix resource() deprecation
webapp/app/router.js
webapp/app/router.js
import Ember from 'ember'; import config from './config/environment'; var Router = Ember.Router.extend({ location: config.locationType }); Router.map(function() { this.resource('setup', function() {}); this.resource('login', function() {}); }); export default Router;
JavaScript
0.000031
@@ -168,22 +168,19 @@ this.r -esourc +out e('setup @@ -180,31 +180,16 @@ ('setup' -, function() %7B%7D );%0A thi @@ -195,14 +195,11 @@ is.r -esourc +out e('l @@ -207,23 +207,8 @@ gin' -, function() %7B%7D );%0A%7D
9960db86d9cf5fc1e0db641344d7bc9c94583ccd
fix benchmark
benchmark.js
benchmark.js
var chain = require('./stack-chain.js'); var summary = require('summary'); var assert = require('assert'); function timeit(top, doit) { var times = new Float64Array(top); var total = 0; for (var i = 0; i < top; i++) { var tick = process.hrtime(); total += doit().length; var tock =...
JavaScript
0.000009
@@ -1380,17 +1380,16 @@ callSite -s ();%0A
d0080d588ff13cb03e81ba12bbe46ebe7d8a2190
Allow await-in-loop
.eslintrc.js
.eslintrc.js
module.exports = { "parserOptions": { "ecmaVersion": 2018, "sourceType": "module" }, "env": { "node": true, "es6": true }, "extends": [ "airbnb-base", "plugin:promise/recommended" ], "plugins": [ "promise", "typescript" ], "rules": { "func-names": "off", "import...
JavaScript
0.000116
@@ -337,32 +337,63 @@ export%22: %22off%22,%0A + %22no-await-in-loop%22: %22off%22,%0A %22no-console%22
71780f7ba3e9c0503e00a835ca7040bf9a55703a
set printWidth to 100 and tabWidth to 2
.eslintrc.js
.eslintrc.js
// http://eslint.org/docs/user-guide/configuring module.exports = { root: true, parser: 'babel-eslint', parserOptions: { sourceType: 'module', }, env: { browser: true, }, extends: ['airbnb-base', 'prettier'], plugins: ['html', 'import', 'prettier'], settings: { 'import/resolver': { webpack: { con...
JavaScript
0.000244
@@ -873,17 +873,17 @@ Width: 1 -2 +0 0, tabWi @@ -891,24 +891,9 @@ th: -1, useTabs: true +2 %7D,%0A
a68851eb0555f2e7d3a0bc67f226c875fd62c500
Enable dependency checking for cpdifference (it's fixed now).
packages/maniajs-cpdifference/src/plugin.js
packages/maniajs-cpdifference/src/plugin.js
'use strict'; var Package = require('./../package.json'); var path = require('path'); var async = require('async'); var Plugin = require('@maniajs/plugin').default; /** * LocalRecords Plugin. */ module.exports.default = class extends Plugin { constructor() { super(); // Set the package s...
JavaScript
0
@@ -552,113 +552,8 @@ re.%0A - // TODO: Should include '@maniajs/plugin-localrecords' as dependency, but this causes a fatal error.%0A @@ -573,18 +573,16 @@ cies = %5B -/* '@maniaj @@ -603,18 +603,16 @@ records' -*/ %5D;%0A t
09efe4eb23a0574bc90cba318e8dacb7e0d09078
make jslint happy
js/modules/mockForChannels.js
js/modules/mockForChannels.js
define([ "modules/channels/establishChannel", "modules/channels/chatChannel", "tools/random", "modules/data-types/hex", "modules/couchTransport" ], function (EstablishChannel, ChatChannel, random, Hex, CouchTransport) { "use strict"; function Service() { this.channels = []...
JavaScript
0.000007
@@ -898,32 +898,93 @@ ex, dataHex) %7B%0D%0A + console.log(%22received message from %22, chIdHex);%0D%0A var @@ -1496,16 +1496,17 @@ function + (chId) %7B @@ -4151,10 +4151,13 @@ ndex --- + -= 1 ) %7B%0D
9f67fdf5a70bcde62eebb6460d1015b3a2ddd15b
Modify method to check equality of lock-relation
js/relations/lock-relation.js
js/relations/lock-relation.js
(function(app) { 'use strict'; var jCore = require('jcore'); var helper = app.helper || require('../helper.js'); var LockRelation = helper.inherits(function(props) { LockRelation.super_.call(this); this.type = this.prop(props.type); this.module = this.prop(props.module); this.port = this.prop...
JavaScript
0
@@ -681,16 +681,28 @@ return +helper.equal (this%5Bke @@ -709,12 +709,9 @@ y%5D() - === +, oth
8929a911969a9ee39bf5f627825400ace1d7129a
annotate br serialization arguments
packages/plugins/content/slate/src/hooks.js
packages/plugins/content/slate/src/hooks.js
// @flow // FIXME #125: missing types for slate internals /* eslint-disable new-cap, arrow-body-style, react/display-name */ import { List } from 'immutable' import head from 'ramda/src/head' import map from 'ramda/src/map' import path from 'ramda/src/path' import reduce from 'ramda/src/reduce' import tail from 'ramda/...
JavaScript
0
@@ -1243,16 +1243,21 @@ alize(el +: any ) %7B%0A @@ -1368,16 +1368,21 @@ e(object +: any , childr @@ -1383,16 +1383,21 @@ children +: any ) %7B%0A
5fada78d5d4454051d750b7e501996f17e349b5a
add a way to set a custom axios instance
drivers/http/axios.js
drivers/http/axios.js
var axios = require('axios'); module.exports = { _interceptor: function (req, res) { let _this = this; if (req) { axios.interceptors.request.use((request) => { req.call(_this, request); return request; }) } if (res) { axios.interceptors.response.use((response) => ...
JavaScript
0
@@ -1,7 +1,131 @@ -var +module.exports = function (axiosInstance) %7B%0A var axios = null%0A%0A if (axiosInstance) %7B%0A axios = axiosInstance%0A %7D else %7B%0A axi @@ -151,29 +151,26 @@ ');%0A -%0Amodule.exports = %7B%0A%0A + %7D%0A%0A return %7B%0A _i @@ -211,11 +211,13 @@ -let + var _th...
b0b00ba987a5160a067a278e7d06ffa18156aa0e
stop calling switch user api every page load
public/switch-user-service.js
public/switch-user-service.js
/** * RcmSwitchUserService * @param $http * @param rcmLoading * @param rcmApiLibService * @param rcmEventManager * @constructor */ var RcmSwitchUserService = function ($http, rcmLoading, rcmApiLibService, rcmEventManager) { /** * self */ var self = this; /** * config * @type {{s...
JavaScript
0
@@ -1770,139 +1770,1171 @@ );%0A - %7D;%0A%0A /**%0A * getSu%0A * @param onSuccess%0A * @param onError%0A */%0A self.getSu = function (onSuccess, onError) %7B +%0A setSessionCachedSuData(data);%0A %7D;%0A%0A /**%0A * Gets the cached data from the browser's %22session%22 local...
4c2086319754c171a49f2202ed0fb240a5d6e2c4
Add hasVisionary helper
packages/shared/lib/helpers/subscription.js
packages/shared/lib/helpers/subscription.js
import { PLAN_TYPES, PLAN_SERVICES, PLANS, CYCLE } from '../constants'; const { PLAN, ADDON } = PLAN_TYPES; const { MAIL } = PLAN_SERVICES; const { PLUS, VPNPLUS } = PLANS; /** * Get plan from current subscription * @param {Array} subscription.Plans * @param {Integer} service * @returns {Object} plan */ export c...
JavaScript
0.000001
@@ -155,16 +155,27 @@ VPNPLUS +, VISIONARY %7D = PLA @@ -1591,24 +1591,297 @@ ETIME';%0A%7D;%0A%0A +/**%0A * Check if the current subscription has visionary plan%0A * @param %7BObject%7D subscription%0A * @returns %7BBoolean%7D%0A */%0Aexport const hasVisionary = (subscription = %7B%7D) =%3E %7B%0A const %7B Pl...
f85b565639167607d00f7650a6e26d63e8813fa9
Clean up index after Dispatcher refactor
bin/index.js
bin/index.js
#!/usr/bin/env node 'use strict'; const debug = require('debug')('Index'); const verbose = require('debug')('Index:Verbose'); const path = require('path'); /* Node v8.1.2 does not support ES2015-style modules without --harmony. */ const Dispatcher = require('../dist/Dispatcher.js').default; let program = path.basen...
JavaScript
0.000001
@@ -737,115 +737,8 @@ %3E %7B%0A - if (results.error) %7B%0A console.log(results.error);%0A debug(%60Error: %25O%60, results.error);%0A %7D else %7B%0A de @@ -762,24 +762,16 @@ results. -results. length%7D @@ -799,46 +799,8 @@ %60);%0A - verbose(%60%25O%60, results.results);%0A /* @@ -839,18 +...
b72c942ec3c23d21211280977c009b541cf8abde
Fix missing period.
js/views/userPage/UserPage.js
js/views/userPage/UserPage.js
import $ from 'jquery'; import baseVw from '../baseVw'; import loadTemplate from '../../utils/loadTemplate'; import app from '../../app'; import { followedByYou, followUnfollow } from '../../utils/follow'; import { abbrNum } from '../../utils'; import { capitalize } from '../../utils/string'; import { isHiRez } from '....
JavaScript
0.011672
@@ -2788,16 +2788,17 @@ this.$(' +. js-avata
c36362a4253fdb5fe0a39137b8bf9c88b77fbba2
fix void blocks to node be inline-block, closes #1210
packages/slate-react/src/components/void.js
packages/slate-react/src/components/void.js
import Debug from 'debug' import React from 'react' import SlateTypes from 'slate-prop-types' import Types from 'prop-types' import { Mark } from 'slate' import Leaf from './leaf' import OffsetKey from '../utils/offset-key' /** * Debug. * * @type {Function} */ const debug = Debug('slate:void') /** * Void. * ...
JavaScript
0.000002
@@ -2864,32 +2864,20 @@ -le +cons t Tag -, style%0A%0A if ( + = node @@ -2884,25 +2884,24 @@ .kind == -= 'block' ) %7B%0A @@ -2896,176 +2896,25 @@ ock' -) %7B%0A Tag = 'div'%0A style = %7B%0A display: 'inline-block',%0A verticalAlign: 'top',%0A width: '100%25'%0A ...
67d6e13e8a82ba5b5d0dd0af966dc77526217770
Optimize Subscription subscribe/unsubscribe
src/utils/Subscription.js
src/utils/Subscription.js
// encapsulates the subscription logic for connecting a component to the redux store, as well as // nesting subscriptions of decendant components, so that we can ensure the ancestor components // re-render before descendants export default class Subscription { constructor(store, parentSub, onStateChange) { this....
JavaScript
0.000013
@@ -1,8 +1,966 @@ +%0A// a linked list of nest subscription listeners. Implementing as a LL instead of an array%0A// makes for cheaper subscriptions & unsubscriptions vs cloning/mutating an array. Also, it%0A// was nice to implement a linked list for the first time in like 15 years.%0Afunction createNestedSubList() %7B...
1c0fc8b94a531ee0683893e6f3d2dae078308c99
Use an array instead of a hash for storing test indices
bin/index.js
bin/index.js
#!/usr/bin/env node var program = require('commander') , fs = require('fs') , path = require('path') , util = require('util') , extend = require('extend') , Handlebars = require('handlebars'); program .version('0.0.0') .usage('[options] <file ...>') .option('-o, --output [file]', 'write JSON output to...
JavaScript
0.000006
@@ -379,18 +379,18 @@ sTemp = -%7B%7D +%5B%5D %0A , con @@ -624,17 +624,16 @@ if ( -! testsTem @@ -634,36 +634,36 @@ stsTemp. -hasOwnProperty(name) +indexOf(name) === -1 ) %7B%0A @@ -1126,21 +1126,19 @@ Temp -%5Bname%5D = true +.push(name) ;%0A
c435fa54c5416bda364e7e3aa23230df1d7faf37
Fix duplicate `g` elements, add `--delete-on-update` class
src/utils/draw/reset_g.js
src/utils/draw/reset_g.js
// remove all children of the main `g` element // prepare for re-drawing (e.g. during resize) with margins export default ({ g, margin }) => { g.selectAll('*').remove() g.append('g') .attr('transform', 'translate(' + margin.left + ',' + margin.top + ')') }
JavaScript
0
@@ -40,16 +40,119 @@ element%0A +// and all children of the base %60element%60 that are flagged with a css class named %60--delete-on-update%60%0A // prepa @@ -203,16 +203,16 @@ margins%0A - export d @@ -226,16 +226,27 @@ (%7B%0A g,%0A + element,%0A margin @@ -254,16 +254,68 @@ %7D) =%3E %7B%0A + element.se...
78c5081a29a3df369c40a76a7c3f80e3dcb082a7
Support Markdown-driven hyperlinks in MS Word.
src/utils/html-to-wpml.js
src/utils/html-to-wpml.js
/** Definition of the Markdown to WordProcessingML conversion routine. @license MIT. Copyright (c) 2015 James Devlin / FluentDesk. @module html-to-wpml.js */ (function(){ var _ = require('underscore'); var HTML5Tokenizer = require('simple-html-tokenizer'); module.exports = function( html ) { var final = '...
JavaScript
0
@@ -304,32 +304,96 @@ -var final = '' +// Tokenize the HTML stream.%0A var tokens = HTML5Tokenizer.tokenize( html ) ;%0A +%0A var is_b @@ -388,31 +388,35 @@ var -is_bold = false +final = '', is_bold , is_ita @@ -418,24 +418,16 @@ s_italic - = false , is_lin @@ -431,87 +431,205 @@ link - = fal...
f3578b2f38918bf5410544322a7ead8eee87ba29
make sure that unrendered sections still unbind correctly
src/view/items/Section.js
src/view/items/Section.js
import { createDocumentFragment } from '../../utils/dom'; import { SECTION_EACH, SECTION_IF, SECTION_IF_WITH, SECTION_UNLESS, SECTION_WITH } from '../../config/types'; import { isObject } from '../../utils/is'; import Fragment from '../Fragment'; import RepeatedFragment from '../RepeatedFragment'; import { MustacheCont...
JavaScript
0
@@ -5154,24 +5154,85 @@ ;%0A%09%09%09%09%7D%0A%09%09%09%7D + else if ( this.fragment ) %7B%0A%09%09%09%09this.fragment.unbind();%0A%09%09%09%7D %0A%0A%09%09%09this.fr