id
stringlengths
34
124
type
stringclasses
4 values
prompt
stringlengths
0
4.95k
response
stringlengths
21
4.89k
source_lang
stringclasses
3 values
target_lang
stringclasses
2 values
repo
stringclasses
75 values
path
stringlengths
10
88
license
stringclasses
1 value
commit
stringlengths
40
40
stars
int64
431
18.7k
source_url
stringlengths
86
176
line_start
int64
1
214
line_end
int64
3
253
jianliaoim/talk-os:talk-web/client/actions/inte.coffee:2:completion
completion
exports.inteUpdate = (_inteId, data, success, fail) -> config = pathParams: id: _inteId data: data api.integrations.update.put(config)
.then (resp) -> dispatcher.handleViewAction type: 'inte/update', data: resp success? resp .catch (error) -> notifyActions.error lang.getText('failed-update-integration') fail? error
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/inte.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/inte.coffee
22
33
jianliaoim/talk-os:talk-web/client/actions/inte.coffee:3:raw_corpus
raw_corpus
exports.inteCreate = (data, success, fail) -> api.integrations.create.post(data: data) .then (resp) -> resp.isNew = true dispatcher.handleViewAction type: 'inte/create' data: resp success? resp .catch (error) -> notifyActions.error lang.getText('failed-create-integratio...
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/inte.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/inte.coffee
35
45
jianliaoim/talk-os:talk-web/client/actions/inte.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.inteCreate = (data, success, fail) -> api.integrations.create.post(data: data) .then (resp) -> resp.isNew = true dispatcher.handleViewAction type: 'inte/create' data: resp success? resp .catch (error) -> n...
exports.inteCreate = function(data, success, fail) { return api.integrations.create.post({ data: data }).then(function(resp) { resp.isNew = true; dispatcher.handleViewAction({ type: 'inte/create', data: resp }); return typeof success === "function" ? success(resp) : void 0; }).catc...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/actions/inte.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/inte.coffee
35
45
jianliaoim/talk-os:talk-web/client/actions/inte.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.inteCreate = function(data, success, fail) { return api.integrations.create.post({ data: data }).then(function(resp) { resp.isNew = true; dispatcher.handleViewAction({ type: 'inte/create', data: resp }); return typeof suc...
exports.inteCreate = (data, success, fail) -> api.integrations.create.post(data: data) .then (resp) -> resp.isNew = true dispatcher.handleViewAction type: 'inte/create' data: resp success? resp .catch (error) -> notifyActions.error lang.getText('failed-create-integratio...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/inte.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/inte.coffee
35
45
jianliaoim/talk-os:talk-web/client/actions/inte.coffee:3:completion
completion
exports.inteCreate = (data, success, fail) -> api.integrations.create.post(data: data) .then (resp) -> resp.isNew = true dispatcher.handleViewAction
type: 'inte/create' data: resp success? resp .catch (error) -> notifyActions.error lang.getText('failed-create-integration') fail? error
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/inte.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/inte.coffee
35
45
jianliaoim/talk-os:talk-web/client/actions/inte.coffee:4:raw_corpus
raw_corpus
exports.inteRemove = (inte, success, fail) -> api.integrations.remove.delete(pathParams: id: inte.get('_id')) .then (resp) -> dispatcher.handleViewAction type: 'inte/remove' data: inte success? resp .catch (error) -> fail? error
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/inte.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/inte.coffee
47
55
jianliaoim/talk-os:talk-web/client/actions/inte.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.inteRemove = (inte, success, fail) -> api.integrations.remove.delete(pathParams: id: inte.get('_id')) .then (resp) -> dispatcher.handleViewAction type: 'inte/remove' data: inte success? resp .catch (error) -> fa...
exports.inteRemove = function(inte, success, fail) { return api.integrations.remove.delete({ pathParams: { id: inte.get('_id') } }).then(function(resp) { dispatcher.handleViewAction({ type: 'inte/remove', data: inte }); return typeof success === "function" ? success(resp) : voi...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/actions/inte.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/inte.coffee
47
55
jianliaoim/talk-os:talk-web/client/actions/inte.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.inteRemove = function(inte, success, fail) { return api.integrations.remove.delete({ pathParams: { id: inte.get('_id') } }).then(function(resp) { dispatcher.handleViewAction({ type: 'inte/remove', data: inte }); ret...
exports.inteRemove = (inte, success, fail) -> api.integrations.remove.delete(pathParams: id: inte.get('_id')) .then (resp) -> dispatcher.handleViewAction type: 'inte/remove' data: inte success? resp .catch (error) -> fail? error
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/inte.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/inte.coffee
47
55
jianliaoim/talk-os:talk-web/client/actions/inte.coffee:4:completion
completion
exports.inteRemove = (inte, success, fail) -> api.integrations.remove.delete(pathParams: id: inte.get('_id')) .then (resp) -> dispatcher.handleViewAction
type: 'inte/remove' data: inte success? resp .catch (error) -> fail? error
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/inte.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/inte.coffee
47
55
jianliaoim/talk-os:talk-web/client/actions/inte.coffee:5:raw_corpus
raw_corpus
exports.checkRss = (url, success, fail) -> api.integrations.checkrss.get(queryParams: url: url) .then (resp) -> success? resp .catch (error) -> fail? error
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/inte.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/inte.coffee
57
62
jianliaoim/talk-os:talk-web/client/actions/inte.coffee:5:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.checkRss = (url, success, fail) -> api.integrations.checkrss.get(queryParams: url: url) .then (resp) -> success? resp .catch (error) -> fail? error ```
exports.checkRss = function(url, success, fail) { return api.integrations.checkrss.get({ queryParams: { url: url } }).then(function(resp) { return typeof success === "function" ? success(resp) : void 0; }).catch(function(error) { return typeof fail === "function" ? fail(error) : void 0; })...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/actions/inte.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/inte.coffee
57
62
jianliaoim/talk-os:talk-web/client/actions/inte.coffee:5:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.checkRss = function(url, success, fail) { return api.integrations.checkrss.get({ queryParams: { url: url } }).then(function(resp) { return typeof success === "function" ? success(resp) : void 0; }).catch(function(error) { return ...
exports.checkRss = (url, success, fail) -> api.integrations.checkrss.get(queryParams: url: url) .then (resp) -> success? resp .catch (error) -> fail? error
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/inte.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/inte.coffee
57
62
jianliaoim/talk-os:talk-web/client/actions/inte.coffee:5:completion
completion
exports.checkRss = (url, success, fail) -> api.integrations.checkrss.get(queryParams: url: url) .then (resp) ->
success? resp .catch (error) -> fail? error
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/inte.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/inte.coffee
57
62
jianliaoim/talk-os:talk-web/client/actions/inte.coffee:6:raw_corpus
raw_corpus
exports.getSettings = (success, fail) -> api.services.settings.get() .then (resp) -> email = iconUrl: utilUrl.emailIcon name: 'email' template: '' isCustomized: false manual: false title: lang.getText('inte-email') summary: zh: lang.getText('...
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/inte.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/inte.coffee
64
85
jianliaoim/talk-os:talk-web/client/actions/inte.coffee:6:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript exports.getSettings = (success, fail) -> api.services.settings.get() .then (resp) -> email = iconUrl: utilUrl.emailIcon name: 'email' template: '' isCustomized: false manual: false title: lang.getText('i...
exports.getSettings = function(success, fail) { return api.services.settings.get().then(function(resp) { var email; email = { iconUrl: utilUrl.emailIcon, name: 'email', template: '', isCustomized: false, manual: false, title: lang.getText('inte-email'), summary: { ...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/actions/inte.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/inte.coffee
64
85
jianliaoim/talk-os:talk-web/client/actions/inte.coffee:6:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript exports.getSettings = function(success, fail) { return api.services.settings.get().then(function(resp) { var email; email = { iconUrl: utilUrl.emailIcon, name: 'email', template: '', isCustomized: false, manual: false, ...
exports.getSettings = (success, fail) -> api.services.settings.get() .then (resp) -> email = iconUrl: utilUrl.emailIcon name: 'email' template: '' isCustomized: false manual: false title: lang.getText('inte-email') summary: zh: lang.getText('...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/inte.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/inte.coffee
64
85
jianliaoim/talk-os:talk-web/client/actions/inte.coffee:6:completion
completion
exports.getSettings = (success, fail) -> api.services.settings.get() .then (resp) -> email = iconUrl: utilUrl.emailIcon name: 'email' template: '' isCustomized: false manual: false title: lang.getText('inte-email') summary:
zh: lang.getText('inte-email-summary', 'zh') en: lang.getText('inte-email-summary', 'en') description: zh: lang.getText('inte-email-description', 'zh') en: lang.getText('inte-email-description', 'en') resp.unshift email recorder.dispatch 'inte/settings', resp succ...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/actions/inte.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/actions/inte.coffee
64
85
Glavin001/atom-beautify:src/beautifiers/csscomb.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') module.exports = class JSBeautify extends Beautifier name: "CSScomb" link: "https://github.com/csscomb/csscomb.js" options: { # TODO: Add support for options _: configPath: true predefinedConfig: true CSS: true LESS: true SCSS: tr...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/csscomb.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/csscomb.coffee
1
50
Glavin001/atom-beautify:src/beautifiers/csscomb.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') module.exports = class JSBeautify extends Beautifier name: "CSScomb" link: "https://github.com/csscomb/csscomb.js" options: { # TODO: Add support for options _: configPath: true predefinedConfig: true CSS: true LESS: true SCSS: tr...
config = null try # Load from project config file, throwing error if neither exist project = atom.project.getDirectories()?[0] try config = CSON.readFileSync(project?.resolve '.csscomb.cson') catch config = require(project?.resolve '.csscomb.json') catch t...
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/csscomb.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/csscomb.coffee
1
50
Glavin001/atom-beautify:src/beautifiers/csscomb.coffee:2:raw_corpus
raw_corpus
when "Sass" syntax = "sass" # Use processedCSS = comb.processString(text, { syntax: syntax }) # console.log('processedCSS', processedCSS, syntax) resolve(processedCSS) )
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/csscomb.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/csscomb.coffee
51
60
Glavin001/atom-beautify:src/beautifiers/csscomb.coffee:2:completion
completion
when "Sass" syntax = "sass" # Use processedCSS = comb.processString(text, { syntax: syntax
}) # console.log('processedCSS', processedCSS, syntax) resolve(processedCSS) )
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/csscomb.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/csscomb.coffee
51
60
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (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.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee
1
24
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (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.opensource.org/licens...
/* * Copyright (c) 2013-2018 the original author or authors. * * Licensed under the MIT License (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.opensource.org/licenses/mit-license.php * * Unless required by applica...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee
1
24
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Copyright (c) 2013-2018 the original author or authors. * * Licensed under the MIT License (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.opensource.org/li...
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (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.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee
1
24
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee:1:completion
completion
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (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.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
# either express or implied. See the License for the specific # language governing permissions and limitations under the License. ### # Directive that adds the fullscreen class to parent elements cyclotronDirectives.directive 'fullscreen', -> { restrict: 'CA' link: (scope, element, attrs) -> ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee
1
24
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (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.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee
1
24
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (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.opensource.org/licens...
/* * Copyright (c) 2013-2015 the original author or authors. * * Licensed under the MIT License (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.opensource.org/licenses/mit-license.php * * Unless required by applica...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee
1
24
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Copyright (c) 2013-2015 the original author or authors. * * Licensed under the MIT License (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.opensource.org/li...
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (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.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee
1
24
ExpediaGroup/cyclotron:cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee:1:completion
completion
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (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.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
# either express or implied. See the License for the specific # language governing permissions and limitations under the License. ### # Directive that adds the fullscreen class to parent elements cyclotronDirectives.directive 'fullscreen', -> { restrict: 'CA' link: (scope, element, attrs) -> ...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee
MIT
14b0e411415be801f94fe13ea6f63d5ad957c2ed
1,544
https://github.com/ExpediaGroup/cyclotron/blob/14b0e411415be801f94fe13ea6f63d5ad957c2ed/cyclotron-site/app/scripts/common/directives/directives.fullscreen.coffee
1
24
ExpediaGroup/cyclotron:cyclotron-site/test/unit/mixins-varsub-spec.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (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.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/test/unit/mixins-varsub-spec.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/test/unit/mixins-varsub-spec.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/test/unit/mixins-varsub-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (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.opensource.org/licens...
/* * Copyright (c) 2013-2018 the original author or authors. * * Licensed under the MIT License (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.opensource.org/licenses/mit-license.php * * Unless required by applica...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/test/unit/mixins-varsub-spec.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/test/unit/mixins-varsub-spec.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/test/unit/mixins-varsub-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Copyright (c) 2013-2018 the original author or authors. * * Licensed under the MIT License (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.opensource.org/li...
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (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.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/test/unit/mixins-varsub-spec.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/test/unit/mixins-varsub-spec.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/test/unit/mixins-varsub-spec.coffee:1:completion
completion
### # Copyright (c) 2013-2018 the original author or authors. # # Licensed under the MIT License (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.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
it 'should return the value of the object if null', -> expect(_.varSub("string", null)).toBe 'string' it 'should return a number if given a number', -> expect(_.varSub(99, {})).toBe 99 it 'should return empty string if given an empty string', -> expect(_.varSub('', {})).toBeEmptyString...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/test/unit/mixins-varsub-spec.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/test/unit/mixins-varsub-spec.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/test/unit/mixins-varsub-spec.coffee:2:raw_corpus
raw_corpus
it 'should replace variables at the beginning of the string', -> expect(_.varSub('#{name} is great', {name: 'Dave'})).toBe 'Dave is great' it 'should replace two variables in the string', -> expect(_.varSub('#{name} is #{adj}', {name: 'Dave', adj: 'funny'})).toBe 'Dave is funny' it 'should rep...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/test/unit/mixins-varsub-spec.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/test/unit/mixins-varsub-spec.coffee
51
79
ExpediaGroup/cyclotron:cyclotron-site/test/unit/mixins-varsub-spec.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript it 'should replace variables at the beginning of the string', -> expect(_.varSub('#{name} is great', {name: 'Dave'})).toBe 'Dave is great' it 'should replace two variables in the string', -> expect(_.varSub('#{name} is #{adj}', {name: 'Dave',...
it('should replace variables at the beginning of the string', function() { return expect(_.varSub('#{name} is great', { name: 'Dave' })).toBe('Dave is great'); }); it('should replace two variables in the string', function() { return expect(_.varSub('#{name} is #{adj}', { name: 'Dave', adj: 'funny' ...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/test/unit/mixins-varsub-spec.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/test/unit/mixins-varsub-spec.coffee
51
79
ExpediaGroup/cyclotron:cyclotron-site/test/unit/mixins-varsub-spec.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript it('should replace variables at the beginning of the string', function() { return expect(_.varSub('#{name} is great', { name: 'Dave' })).toBe('Dave is great'); }); it('should replace two variables in the string', function() { return expect(_.varSub('#{na...
it 'should replace variables at the beginning of the string', -> expect(_.varSub('#{name} is great', {name: 'Dave'})).toBe 'Dave is great' it 'should replace two variables in the string', -> expect(_.varSub('#{name} is #{adj}', {name: 'Dave', adj: 'funny'})).toBe 'Dave is funny' it 'should rep...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/test/unit/mixins-varsub-spec.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/test/unit/mixins-varsub-spec.coffee
51
79
ExpediaGroup/cyclotron:cyclotron-site/test/unit/mixins-varsub-spec.coffee:2:completion
completion
it 'should replace variables at the beginning of the string', -> expect(_.varSub('#{name} is great', {name: 'Dave'})).toBe 'Dave is great' it 'should replace two variables in the string', -> expect(_.varSub('#{name} is #{adj}', {name: 'Dave', adj: 'funny'})).toBe 'Dave is funny' it 'should rep...
it 'should format a number if a format string is provided', -> expect(_.varSub('#{number|0.0 %}', {number: 0.99})).toBe '99.0 %' it 'should format a number if a format string is provided with additional text', -> expect(_.varSub('#{number|0.0} bps', {number: 123.456})).toBe '123.5 bps' it 'sho...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/test/unit/mixins-varsub-spec.coffee
MIT
0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab
1,544
https://github.com/ExpediaGroup/cyclotron/blob/0228db71d84a3138a9ffddb50d8f4f8ff37cc5ab/cyclotron-site/test/unit/mixins-varsub-spec.coffee
51
79
ExpediaGroup/cyclotron:cyclotron-site/test/unit/mixins-varsub-spec.coffee:1:raw_corpus
raw_corpus
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (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.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/test/unit/mixins-varsub-spec.coffee
MIT
08680403c1ab72b7789517426293681c2224eada
1,544
https://github.com/ExpediaGroup/cyclotron/blob/08680403c1ab72b7789517426293681c2224eada/cyclotron-site/test/unit/mixins-varsub-spec.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/test/unit/mixins-varsub-spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (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.opensource.org/licens...
/* * Copyright (c) 2013-2015 the original author or authors. * * Licensed under the MIT License (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.opensource.org/licenses/mit-license.php * * Unless required by applica...
CoffeeScript
JavaScript
ExpediaGroup/cyclotron
cyclotron-site/test/unit/mixins-varsub-spec.coffee
MIT
08680403c1ab72b7789517426293681c2224eada
1,544
https://github.com/ExpediaGroup/cyclotron/blob/08680403c1ab72b7789517426293681c2224eada/cyclotron-site/test/unit/mixins-varsub-spec.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/test/unit/mixins-varsub-spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Copyright (c) 2013-2015 the original author or authors. * * Licensed under the MIT License (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.opensource.org/li...
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (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.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
JavaScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/test/unit/mixins-varsub-spec.coffee
MIT
08680403c1ab72b7789517426293681c2224eada
1,544
https://github.com/ExpediaGroup/cyclotron/blob/08680403c1ab72b7789517426293681c2224eada/cyclotron-site/test/unit/mixins-varsub-spec.coffee
1
50
ExpediaGroup/cyclotron:cyclotron-site/test/unit/mixins-varsub-spec.coffee:1:completion
completion
### # Copyright (c) 2013-2015 the original author or authors. # # Licensed under the MIT License (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.opensource.org/licenses/mit-license.php # # Unless required by applicable law ...
it 'should return the value of the object if null', -> expect(_.varSub("string", null)).toBe 'string' it 'should return a number if given a number', -> expect(_.varSub(99, {})).toBe 99 it 'should return empty string if given an empty string', -> expect(_.varSub('', {})).toBeEmptyString...
CoffeeScript
CoffeeScript
ExpediaGroup/cyclotron
cyclotron-site/test/unit/mixins-varsub-spec.coffee
MIT
08680403c1ab72b7789517426293681c2224eada
1,544
https://github.com/ExpediaGroup/cyclotron/blob/08680403c1ab72b7789517426293681c2224eada/cyclotron-site/test/unit/mixins-varsub-spec.coffee
1
50
jianliaoim/talk-os:talk-web/client/app/setting-page.coffee:1:raw_corpus
raw_corpus
React = require 'react' Immutable = require 'immutable' lang = require '../locales/lang' SettingRookie = React.createFactory require './setting-rookie' SettingSync = React.createFactory require './setting-sync' SettingSyncTeams = React.createFactory require './setting-sync-teams' SettingTeamCreate = React.createFacto...
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/setting-page.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/setting-page.coffee
1
42
jianliaoim/talk-os:talk-web/client/app/setting-page.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript React = require 'react' Immutable = require 'immutable' lang = require '../locales/lang' SettingRookie = React.createFactory require './setting-rookie' SettingSync = React.createFactory require './setting-sync' SettingSyncTeams = React.createFactory require './...
var Immutable, PureRenderMixin, React, SettingRookie, SettingSync, SettingSyncTeams, SettingTeamCreate, SettingTeams, T, div, lang; React = require('react'); Immutable = require('immutable'); lang = require('../locales/lang'); SettingRookie = React.createFactory(require('./setting-rookie')); SettingSync = React.cr...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/client/app/setting-page.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/setting-page.coffee
1
42
jianliaoim/talk-os:talk-web/client/app/setting-page.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var Immutable, PureRenderMixin, React, SettingRookie, SettingSync, SettingSyncTeams, SettingTeamCreate, SettingTeams, T, div, lang; React = require('react'); Immutable = require('immutable'); lang = require('../locales/lang'); SettingRookie = React.createFactor...
React = require 'react' Immutable = require 'immutable' lang = require '../locales/lang' SettingRookie = React.createFactory require './setting-rookie' SettingSync = React.createFactory require './setting-sync' SettingSyncTeams = React.createFactory require './setting-sync-teams' SettingTeamCreate = React.createFacto...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/setting-page.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/setting-page.coffee
1
42
jianliaoim/talk-os:talk-web/client/app/setting-page.coffee:1:completion
completion
React = require 'react' Immutable = require 'immutable' lang = require '../locales/lang' SettingRookie = React.createFactory require './setting-rookie' SettingSync = React.createFactory require './setting-sync' SettingSyncTeams = React.createFactory require './setting-sync-teams' SettingTeamCreate = React.createFacto...
renderPage: -> switch @props.router.get('name') when 'setting-rookie' SettingRookie() when 'setting-sync' SettingSync() when 'setting-sync-teams' SettingSyncTeams() when 'setting-team-create' SettingTeamCreate() when 'setting-teams' SettingTeams(...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/client/app/setting-page.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/client/app/setting-page.coffee
1
42
soyjavi/QuoJS:source/quo.gestures.coffee:1:raw_corpus
raw_corpus
### Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _fingers = null _originalEvent = null _disabled_tags = ["input", "select", "textarea"] ...
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _fingers = null _originalEvent = ...
/* Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; var indexOf = [].indexOf; Quo.Gestures = (function($$) { var _cancel, _disabled_tags, _end, _fingers, _handlers, _move, _originalEvent, _start, _started, add, trigger; _started = fa...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; var indexOf = [].indexOf; Quo.Gestures = (function($$) { var _cancel, _disabled_tags, _end, _fingers, _handlers, _move, _origina...
### Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _fingers = null _originalEvent = null _disabled_tags = ["input", "select", "textarea"] ...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:completion
completion
### Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _fingers = null _originalEvent = null _disabled_tags = ["input", "select", "textarea"] ...
# Private methods _start = (ev) -> return ev.stopPropagation() if (ev.srcElement or ev.target).tagName.toLowerCase() in _disabled_tags _started = true _originalEvent = ev or event _fingers = _getFingers(ev) _handle "start", ev.target, _fingers _move = (ev) -> return unless _started _ori...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:2:raw_corpus
raw_corpus
_addDelegations = (events) -> events.forEach (event_name) -> $$.fn[event_name] = (callback) -> $$(document.body).delegate @selector, event_name, callback @ _handle = (event, target, data) -> for name, handler of _handlers when handler[event] handler[event].call(handler, target, data) ...
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.gestures.coffee
51
72
soyjavi/QuoJS:source/quo.gestures.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _addDelegations = (events) -> events.forEach (event_name) -> $$.fn[event_name] = (callback) -> $$(document.body).delegate @selector, event_name, callback @ _handle = (event, target, data) -> for name, handler of _handlers when handler...
var _addDelegations, _getFingers, _handle; _addDelegations = function(events) { events.forEach(function(event_name) { return $$.fn[event_name] = function(callback) { return $$(document.body).delegate(this.selector, event_name, callback); }; }); return this; }; _handle = function(event, target, dat...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.gestures.coffee
51
72
soyjavi/QuoJS:source/quo.gestures.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _addDelegations, _getFingers, _handle; _addDelegations = function(events) { events.forEach(function(event_name) { return $$.fn[event_name] = function(callback) { return $$(document.body).delegate(this.selector, event_name, callback); }; }); ...
_addDelegations = (events) -> events.forEach (event_name) -> $$.fn[event_name] = (callback) -> $$(document.body).delegate @selector, event_name, callback @ _handle = (event, target, data) -> for name, handler of _handlers when handler[event] handler[event].call(handler, target, data) ...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.gestures.coffee
51
72
soyjavi/QuoJS:source/quo.gestures.coffee:2:completion
completion
_addDelegations = (events) -> events.forEach (event_name) -> $$.fn[event_name] = (callback) -> $$(document.body).delegate @selector, event_name, callback @ _handle = (event, target, data) -> for name, handler of _handlers when handler[event] handler[event].call(handler, target, data) ...
({x: t.pageX, y: t.pageY} for t in event.touches or [event]) $$(document).ready -> environment = $$ document.body environment.bind "touchstart", _start environment.bind "touchmove", _move environment.bind "touchend", _end environment.bind "touchcancel", _cancel add : add trigger ...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
7296aa6bc321370c1b92de005c9b55b9e1365596
2,055
https://github.com/soyjavi/QuoJS/blob/7296aa6bc321370c1b92de005c9b55b9e1365596/source/quo.gestures.coffee
51
72
soyjavi/QuoJS:source/quo.gestures.coffee:1:raw_corpus
raw_corpus
### Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _fingers = null _originalEvent = null _disabled_tags = ["input", "select", "textarea"] ...
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
7cbdad322e2d4d3f1a5c452e71b144b5a3a83f1b
2,055
https://github.com/soyjavi/QuoJS/blob/7cbdad322e2d4d3f1a5c452e71b144b5a3a83f1b/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _fingers = null _originalEvent = ...
/* Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; var indexOf = [].indexOf; Quo.Gestures = (function($$) { var _disabled_tags, _end, _fingers, _handlers, _move, _originalEvent, _start, _started, add, trigger; _started = false; _h...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
7cbdad322e2d4d3f1a5c452e71b144b5a3a83f1b
2,055
https://github.com/soyjavi/QuoJS/blob/7cbdad322e2d4d3f1a5c452e71b144b5a3a83f1b/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; var indexOf = [].indexOf; Quo.Gestures = (function($$) { var _disabled_tags, _end, _fingers, _handlers, _move, _originalEvent, _...
### Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _fingers = null _originalEvent = null _disabled_tags = ["input", "select", "textarea"] ...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
7cbdad322e2d4d3f1a5c452e71b144b5a3a83f1b
2,055
https://github.com/soyjavi/QuoJS/blob/7cbdad322e2d4d3f1a5c452e71b144b5a3a83f1b/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:completion
completion
### Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _fingers = null _originalEvent = null _disabled_tags = ["input", "select", "textarea"] ...
add = (gesture) -> _handlers[gesture.name] = gesture.handler _addDelegations gesture.events trigger = (target, eventName, gestureData) -> $$(target).trigger(eventName, gestureData, _originalEvent) # Private methods _start = (ev) -> return ev.stopPropagation() if (ev.srcElement or ev.target).tagN...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
7cbdad322e2d4d3f1a5c452e71b144b5a3a83f1b
2,055
https://github.com/soyjavi/QuoJS/blob/7cbdad322e2d4d3f1a5c452e71b144b5a3a83f1b/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:2:raw_corpus
raw_corpus
_handle "end", ev.target, _fingers _started = false _cancel = (ev) -> _started = false _handle "cancel" _addDelegations = (events) -> events.forEach (event_name) -> $$.fn[event_name] = (callback) -> $$(document.body).delegate @selector, event_name, callback @ _handle = (event,...
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
7cbdad322e2d4d3f1a5c452e71b144b5a3a83f1b
2,055
https://github.com/soyjavi/QuoJS/blob/7cbdad322e2d4d3f1a5c452e71b144b5a3a83f1b/source/quo.gestures.coffee
51
72
soyjavi/QuoJS:source/quo.gestures.coffee:2:completion
completion
_handle "end", ev.target, _fingers _started = false _cancel = (ev) -> _started = false _handle "cancel" _addDelegations = (events) -> events.forEach (event_name) -> $$.fn[event_name] = (callback) -> $$(document.body).delegate @selector, event_name, callback
@ _handle = (event, target, data) -> for name, handler of _handlers when handler[event] handler[event].call(handler, target, data) _getFingers = (event) -> ({x: t.pageX, y: t.pageY} for t in event.touches or [event]) add : add trigger : trigger
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
7cbdad322e2d4d3f1a5c452e71b144b5a3a83f1b
2,055
https://github.com/soyjavi/QuoJS/blob/7cbdad322e2d4d3f1a5c452e71b144b5a3a83f1b/source/quo.gestures.coffee
51
72
soyjavi/QuoJS:source/quo.gestures.coffee:1:raw_corpus
raw_corpus
### Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _fingers = null _originalEvent = null _disabled_tags = ["input", "select", "textarea"] ...
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
a1fd0039f321f1bbb09ebb89c455410fe514faca
2,055
https://github.com/soyjavi/QuoJS/blob/a1fd0039f321f1bbb09ebb89c455410fe514faca/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _fingers = null _originalEvent = ...
/* Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; var indexOf = [].indexOf; Quo.Gestures = (function($$) { var _disabled_tags, _end, _fingers, _handlers, _move, _originalEvent, _start, _started, add, trigger; _started = false; _h...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
a1fd0039f321f1bbb09ebb89c455410fe514faca
2,055
https://github.com/soyjavi/QuoJS/blob/a1fd0039f321f1bbb09ebb89c455410fe514faca/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; var indexOf = [].indexOf; Quo.Gestures = (function($$) { var _disabled_tags, _end, _fingers, _handlers, _move, _originalEvent, _...
### Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _fingers = null _originalEvent = null _disabled_tags = ["input", "select", "textarea"] ...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
a1fd0039f321f1bbb09ebb89c455410fe514faca
2,055
https://github.com/soyjavi/QuoJS/blob/a1fd0039f321f1bbb09ebb89c455410fe514faca/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:completion
completion
### Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _fingers = null _originalEvent = null _disabled_tags = ["input", "select", "textarea"] ...
add = (gesture) -> _handlers[gesture.name] = gesture.handler _addDelegations gesture.events trigger = (target, eventName, gestureData) -> $$(target).trigger(eventName, gestureData, _originalEvent) # Private methods _start = (ev) -> return ev.stopPropagation() if ev.srcElement?.tagName.toLowerCas...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
a1fd0039f321f1bbb09ebb89c455410fe514faca
2,055
https://github.com/soyjavi/QuoJS/blob/a1fd0039f321f1bbb09ebb89c455410fe514faca/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:raw_corpus
raw_corpus
### Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _fingers = null _originalEvent = null _disabled_tags = ["input", "select", "textarea"] ...
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
ef4a79667bc693ccc1f8e75dcb902652dc0dca28
2,055
https://github.com/soyjavi/QuoJS/blob/ef4a79667bc693ccc1f8e75dcb902652dc0dca28/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _fingers = null _originalEvent = ...
/* Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; var indexOf = [].indexOf; Quo.Gestures = (function($$) { var _disabled_tags, _end, _fingers, _handlers, _move, _originalEvent, _start, _started, add, trigger; _started = false; _h...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
ef4a79667bc693ccc1f8e75dcb902652dc0dca28
2,055
https://github.com/soyjavi/QuoJS/blob/ef4a79667bc693ccc1f8e75dcb902652dc0dca28/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; var indexOf = [].indexOf; Quo.Gestures = (function($$) { var _disabled_tags, _end, _fingers, _handlers, _move, _originalEvent, _...
### Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _fingers = null _originalEvent = null _disabled_tags = ["input", "select", "textarea"] ...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
ef4a79667bc693ccc1f8e75dcb902652dc0dca28
2,055
https://github.com/soyjavi/QuoJS/blob/ef4a79667bc693ccc1f8e75dcb902652dc0dca28/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:completion
completion
### Quo Gestures manager @namespace Quo @class Gestures @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _fingers = null _originalEvent = null _disabled_tags = ["input", "select", "textarea"] ...
add = (gesture) -> _handlers[gesture.name] = gesture.handler _addDelegations gesture.events trigger = (target, eventName, gestureData) -> $$(target).trigger(eventName, gestureData, _originalEvent) # Private methods _start = (ev) -> return ev.stopPropagation() if ev.srcElement.tagName.toLowerCase...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
ef4a79667bc693ccc1f8e75dcb902652dc0dca28
2,055
https://github.com/soyjavi/QuoJS/blob/ef4a79667bc693ccc1f8e75dcb902652dc0dca28/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:raw_corpus
raw_corpus
### Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _data = null _originalEvent ...
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
48b4f21799ff05420998f19f7f924c73ede84de0
2,055
https://github.com/soyjavi/QuoJS/blob/48b4f21799ff05420998f19f7f924c73ede84de0/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handl...
/* Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; var indexOf = [].indexOf; Quo.Gestures = (function($$) { var _data, _disabled_tags, _end, _handlers, _move, _originalEvent,...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
48b4f21799ff05420998f19f7f924c73ede84de0
2,055
https://github.com/soyjavi/QuoJS/blob/48b4f21799ff05420998f19f7f924c73ede84de0/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; var indexOf = [].indexOf; Quo.Gestures = (function($$) { var _data, ...
### Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _data = null _originalEvent ...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
48b4f21799ff05420998f19f7f924c73ede84de0
2,055
https://github.com/soyjavi/QuoJS/blob/48b4f21799ff05420998f19f7f924c73ede84de0/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:completion
completion
### Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _data = null _originalEvent ...
add = (gesture) -> _handlers[gesture.name] = gesture.handler _addDelegations gesture.events trigger = (target, eventName, gestureData) -> $$(target).trigger(eventName, gestureData, _originalEvent) # Private methods _start = (ev) -> return ev.stopPropagation() if ev.srcElement.tagName.toLowerCase...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
48b4f21799ff05420998f19f7f924c73ede84de0
2,055
https://github.com/soyjavi/QuoJS/blob/48b4f21799ff05420998f19f7f924c73ede84de0/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:2:raw_corpus
raw_corpus
_handle "end", ev.target, _data _started = false _cancel = (ev) -> _started = false _handle "cancel" _addDelegations = (events) -> events.forEach (event_name) -> $$.fn[event_name] = (callback) -> $$(document.body).delegate @selector, event_name, callback @ _handle = (eventName...
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
48b4f21799ff05420998f19f7f924c73ede84de0
2,055
https://github.com/soyjavi/QuoJS/blob/48b4f21799ff05420998f19f7f924c73ede84de0/source/quo.gestures.coffee
51
73
soyjavi/QuoJS:source/quo.gestures.coffee:2:completion
completion
_handle "end", ev.target, _data _started = false _cancel = (ev) -> _started = false _handle "cancel" _addDelegations = (events) -> events.forEach (event_name) -> $$.fn[event_name] = (callback) -> $$(document.body).delegate @selector, event_name, callback
@ _handle = (eventName, target, data) -> for name, handler of _handlers when handler[eventName] handler[eventName].call(handler, target, data) _getFingersData = (event) -> touches = if $$.isMobile() then event.touches else [event] return ({x: t.pageX, y: t.pageY} for t in touches) add ...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
48b4f21799ff05420998f19f7f924c73ede84de0
2,055
https://github.com/soyjavi/QuoJS/blob/48b4f21799ff05420998f19f7f924c73ede84de0/source/quo.gestures.coffee
51
73
soyjavi/QuoJS:source/quo.gestures.coffee:1:raw_corpus
raw_corpus
### Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _data = null _originalEvent ...
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
dc1c98837c7d3d726591249b6e78a912a87e90cd
2,055
https://github.com/soyjavi/QuoJS/blob/dc1c98837c7d3d726591249b6e78a912a87e90cd/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handl...
/* Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; var indexOf = [].indexOf; Quo.Gestures = (function($$) { var _data, _disabled_tags, _end, _handlers, _move, _originalEvent,...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
dc1c98837c7d3d726591249b6e78a912a87e90cd
2,055
https://github.com/soyjavi/QuoJS/blob/dc1c98837c7d3d726591249b6e78a912a87e90cd/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; var indexOf = [].indexOf; Quo.Gestures = (function($$) { var _data, ...
### Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _data = null _originalEvent ...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
dc1c98837c7d3d726591249b6e78a912a87e90cd
2,055
https://github.com/soyjavi/QuoJS/blob/dc1c98837c7d3d726591249b6e78a912a87e90cd/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:completion
completion
### Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _data = null _originalEvent ...
add = (gesture) -> _handlers[gesture.name] = gesture.handler _addDelegations gesture.events trigger = (target, eventName, gestureData) -> $$(target).trigger(eventName, gestureData, _originalEvent) # Private methods _start = (ev) -> return if ev.srcElement.tagName.toLowerCase() in _disabled_tags ...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
dc1c98837c7d3d726591249b6e78a912a87e90cd
2,055
https://github.com/soyjavi/QuoJS/blob/dc1c98837c7d3d726591249b6e78a912a87e90cd/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:raw_corpus
raw_corpus
### Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _data = null _originalEvent ...
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
f540c2d1177bdad42b6d34e599bff35d9ef47c24
2,055
https://github.com/soyjavi/QuoJS/blob/f540c2d1177bdad42b6d34e599bff35d9ef47c24/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handl...
/* Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; var indexOf = [].indexOf; Quo.Gestures = (function($$) { var _data, _disabled_tags, _end, _handlers, _move, _originalEvent,...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
f540c2d1177bdad42b6d34e599bff35d9ef47c24
2,055
https://github.com/soyjavi/QuoJS/blob/f540c2d1177bdad42b6d34e599bff35d9ef47c24/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; var indexOf = [].indexOf; Quo.Gestures = (function($$) { var _data, ...
### Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _data = null _originalEvent ...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
f540c2d1177bdad42b6d34e599bff35d9ef47c24
2,055
https://github.com/soyjavi/QuoJS/blob/f540c2d1177bdad42b6d34e599bff35d9ef47c24/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:completion
completion
### Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _data = null _originalEvent ...
add = (gesture) -> _handlers[gesture.name] = gesture.handler _addDelegations gesture.events trigger = (target, eventName, gestureData) -> $$(target).trigger(eventName, gestureData, _originalEvent) # Private methods _start = (ev) -> return if ev.srcElement.tagName.toLowerCase() in _disabled_tags ...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
f540c2d1177bdad42b6d34e599bff35d9ef47c24
2,055
https://github.com/soyjavi/QuoJS/blob/f540c2d1177bdad42b6d34e599bff35d9ef47c24/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:raw_corpus
raw_corpus
### Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _data = null _originalEvent ...
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
3fb864e8b60d943d107c139f265a2719a45093bf
2,055
https://github.com/soyjavi/QuoJS/blob/3fb864e8b60d943d107c139f265a2719a45093bf/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handl...
/* Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; Quo.Gestures = (function($$) { var _addDelegations, _cancel, _data, _end, _handlers, _move, _originalEvent, _start, _started...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
3fb864e8b60d943d107c139f265a2719a45093bf
2,055
https://github.com/soyjavi/QuoJS/blob/3fb864e8b60d943d107c139f265a2719a45093bf/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; Quo.Gestures = (function($$) { var _addDelegations, _cancel, _data, _...
### Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _data = null _originalEvent ...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
3fb864e8b60d943d107c139f265a2719a45093bf
2,055
https://github.com/soyjavi/QuoJS/blob/3fb864e8b60d943d107c139f265a2719a45093bf/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:completion
completion
### Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _data = null _originalEvent ...
# Private methods _start = (ev) -> _started = true _originalEvent = ev or event _data = _getFingersData(ev) _handle "start", ev.target, _data _move = (ev) -> return unless _started _originalEvent = ev or event _data = _getFingersData(ev) _handle "move", ev.target, _data _end = (e...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
3fb864e8b60d943d107c139f265a2719a45093bf
2,055
https://github.com/soyjavi/QuoJS/blob/3fb864e8b60d943d107c139f265a2719a45093bf/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:2:raw_corpus
raw_corpus
$$.fn[event_name] = (callback) -> $$(document.body).delegate @selector, event_name, callback @ _handle = (eventName, target, data) -> for name, handler of _handlers when handler[eventName] handler[eventName].call(handler, target, data) _getFingersData = (event) -> touches = if $$.isMobil...
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
3fb864e8b60d943d107c139f265a2719a45093bf
2,055
https://github.com/soyjavi/QuoJS/blob/3fb864e8b60d943d107c139f265a2719a45093bf/source/quo.gestures.coffee
51
71
soyjavi/QuoJS:source/quo.gestures.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript $$.fn[event_name] = (callback) -> $$(document.body).delegate @selector, event_name, callback @ _handle = (eventName, target, data) -> for name, handler of _handlers when handler[eventName] handler[eventName].call(handler, target, data) ...
var _getFingersData, _handle; $$.fn[event_name] = function(callback) { return $$(document.body).delegate(this.selector, event_name, callback); }; this; _handle = function(eventName, target, data) { var handler, name, results; results = []; for (name in _handlers) { handler = _handlers[name]; if (hand...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
3fb864e8b60d943d107c139f265a2719a45093bf
2,055
https://github.com/soyjavi/QuoJS/blob/3fb864e8b60d943d107c139f265a2719a45093bf/source/quo.gestures.coffee
51
71
soyjavi/QuoJS:source/quo.gestures.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _getFingersData, _handle; $$.fn[event_name] = function(callback) { return $$(document.body).delegate(this.selector, event_name, callback); }; this; _handle = function(eventName, target, data) { var handler, name, results; results = []; for (name in _...
$$.fn[event_name] = (callback) -> $$(document.body).delegate @selector, event_name, callback @ _handle = (eventName, target, data) -> for name, handler of _handlers when handler[eventName] handler[eventName].call(handler, target, data) _getFingersData = (event) -> touches = if $$.isMobil...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
3fb864e8b60d943d107c139f265a2719a45093bf
2,055
https://github.com/soyjavi/QuoJS/blob/3fb864e8b60d943d107c139f265a2719a45093bf/source/quo.gestures.coffee
51
71
soyjavi/QuoJS:source/quo.gestures.coffee:2:completion
completion
$$.fn[event_name] = (callback) -> $$(document.body).delegate @selector, event_name, callback @ _handle = (eventName, target, data) -> for name, handler of _handlers when handler[eventName] handler[eventName].call(handler, target, data) _getFingersData = (event) -> touches = if $$.isMobil...
return ({x: t.pageX, y: t.pageY} for t in touches) $$(document).ready -> environment = $$ document.body environment.bind "touchstart", _start environment.bind "touchmove", _move environment.bind "touchend", _end environment.bind "touchcancel", _cancel add : add trigger : trigger
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
3fb864e8b60d943d107c139f265a2719a45093bf
2,055
https://github.com/soyjavi/QuoJS/blob/3fb864e8b60d943d107c139f265a2719a45093bf/source/quo.gestures.coffee
51
71
soyjavi/QuoJS:source/quo.gestures.coffee:1:raw_corpus
raw_corpus
### Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _data = null _originalEvent ...
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
1ae37dec9559e15872daa8be159849e329456005
2,055
https://github.com/soyjavi/QuoJS/blob/1ae37dec9559e15872daa8be159849e329456005/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handl...
/* Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; Quo.Gestures = (function($$) { var _data, _end, _handlers, _move, _originalEvent, _start, _started, add, trigger; _started...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
1ae37dec9559e15872daa8be159849e329456005
2,055
https://github.com/soyjavi/QuoJS/blob/1ae37dec9559e15872daa8be159849e329456005/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; Quo.Gestures = (function($$) { var _data, _end, _handlers, _move, _or...
### Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _data = null _originalEvent ...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
1ae37dec9559e15872daa8be159849e329456005
2,055
https://github.com/soyjavi/QuoJS/blob/1ae37dec9559e15872daa8be159849e329456005/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:completion
completion
### Quo Gestures manager @namespace Quo @class Gestures @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> _started = false _handlers = {} _data = null _originalEvent ...
add = (gesture) -> _handlers[gesture.name] = gesture.handler _addDelegations gesture.events trigger = (target, eventName, gestureData) -> $$(target).trigger(eventName, gestureData, _originalEvent) # Private methods _start = (ev) -> _started = true _originalEvent = ev or event _data = _ge...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
1ae37dec9559e15872daa8be159849e329456005
2,055
https://github.com/soyjavi/QuoJS/blob/1ae37dec9559e15872daa8be159849e329456005/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:2:raw_corpus
raw_corpus
_cancel = (ev) -> _started = false _handle "cancel" _addDelegations = (events) -> events.forEach (event_name) -> $$.fn[event_name] = (callback) -> $$(document.body).delegate @selector, event_name, callback @ _handle = (eventName, target, data) -> for name, handler of _handlers wh...
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
1ae37dec9559e15872daa8be159849e329456005
2,055
https://github.com/soyjavi/QuoJS/blob/1ae37dec9559e15872daa8be159849e329456005/source/quo.gestures.coffee
51
71
soyjavi/QuoJS:source/quo.gestures.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript _cancel = (ev) -> _started = false _handle "cancel" _addDelegations = (events) -> events.forEach (event_name) -> $$.fn[event_name] = (callback) -> $$(document.body).delegate @selector, event_name, callback @ _handle = (eventNam...
var _addDelegations, _cancel, _getFingersData, _handle; _cancel = function(ev) { var _started; _started = false; return _handle("cancel"); }; _addDelegations = function(events) { events.forEach(function(event_name) { return $$.fn[event_name] = function(callback) { return $$(document.body).delegate(t...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
1ae37dec9559e15872daa8be159849e329456005
2,055
https://github.com/soyjavi/QuoJS/blob/1ae37dec9559e15872daa8be159849e329456005/source/quo.gestures.coffee
51
71
soyjavi/QuoJS:source/quo.gestures.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var _addDelegations, _cancel, _getFingersData, _handle; _cancel = function(ev) { var _started; _started = false; return _handle("cancel"); }; _addDelegations = function(events) { events.forEach(function(event_name) { return $$.fn[event_name] = functio...
_cancel = (ev) -> _started = false _handle "cancel" _addDelegations = (events) -> events.forEach (event_name) -> $$.fn[event_name] = (callback) -> $$(document.body).delegate @selector, event_name, callback @ _handle = (eventName, target, data) -> for name, handler of _handlers wh...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
1ae37dec9559e15872daa8be159849e329456005
2,055
https://github.com/soyjavi/QuoJS/blob/1ae37dec9559e15872daa8be159849e329456005/source/quo.gestures.coffee
51
71
soyjavi/QuoJS:source/quo.gestures.coffee:2:completion
completion
_cancel = (ev) -> _started = false _handle "cancel" _addDelegations = (events) -> events.forEach (event_name) -> $$.fn[event_name] = (callback) -> $$(document.body).delegate @selector, event_name, callback @
_handle = (eventName, target, data) -> for name, handler of _handlers when handler[eventName] handler[eventName].call(handler, target, data) _getFingersData = (event) -> touches = if $$.isMobile() then event.touches else [event] return ({x: t.pageX, y: t.pageY} for t in touches) add : ad...
CoffeeScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
1ae37dec9559e15872daa8be159849e329456005
2,055
https://github.com/soyjavi/QuoJS/blob/1ae37dec9559e15872daa8be159849e329456005/source/quo.gestures.coffee
51
71
soyjavi/QuoJS:source/quo.gestures.coffee:1:raw_corpus
raw_corpus
### Quo Gestures manager @namespace Quo @class gesture @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> STARTED = false HANDLERS = {} _data = null _originalEvent...
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
3d2c388a0f6b32c02709e1bd6fb8a88b8a8cec4e
2,055
https://github.com/soyjavi/QuoJS/blob/3d2c388a0f6b32c02709e1bd6fb8a88b8a8cec4e/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### Quo Gestures manager @namespace Quo @class gesture @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> STARTED = false HANDLE...
/* Quo Gestures manager @namespace Quo @class gesture @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; Quo.Gestures = (function($$) { var HANDLERS, STARTED, _data, _end, _move, _originalEvent, _start, add, trigger; STARTED = f...
CoffeeScript
JavaScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
3d2c388a0f6b32c02709e1bd6fb8a88b8a8cec4e
2,055
https://github.com/soyjavi/QuoJS/blob/3d2c388a0f6b32c02709e1bd6fb8a88b8a8cec4e/source/quo.gestures.coffee
1
50
soyjavi/QuoJS:source/quo.gestures.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* Quo Gestures manager @namespace Quo @class gesture @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi */ "use strict"; Quo.Gestures = (function($$) { var HANDLERS, STARTED, _data, _end, _mo...
### Quo Gestures manager @namespace Quo @class gesture @author Ignacio Olalde Ramos <ina@tapquo.com> || @piniphone @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi ### "use strict" Quo.Gestures = do ($$ = Quo) -> STARTED = false HANDLERS = {} _data = null _originalEvent...
JavaScript
CoffeeScript
soyjavi/QuoJS
source/quo.gestures.coffee
MIT
3d2c388a0f6b32c02709e1bd6fb8a88b8a8cec4e
2,055
https://github.com/soyjavi/QuoJS/blob/3d2c388a0f6b32c02709e1bd6fb8a88b8a8cec4e/source/quo.gestures.coffee
1
50