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
ichord/At.js:src/app.coffee:3:completion
completion
shutdown: -> for _, c of @controllers c.destroy() delete @controllers[_] @$inputor.off '.atwhoInner' @$el.remove() dispatch: (e) -> c.lookUp(e) for _, c of @controllers onKeyup: (e) -> switch e.keyCode when KEY_CODE.ESC e.preventDefault() this.controller()?.vi...
# return if not (view = this.controller().view).visible() view = this.controller()?.view return if not (view and view.visible()) switch e.keyCode when KEY_CODE.ESC e.preventDefault() view.hide(e) when KEY_CODE.UP e.preventDefault() view.prev() when KEY_CODE....
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
c374c9335f761b66ecb3dec4770a3f630e5bcb4e
5,250
https://github.com/ichord/At.js/blob/c374c9335f761b66ecb3dec4770a3f630e5bcb4e/src/app.coffee
102
151
ichord/At.js:src/app.coffee:4:raw_corpus
raw_corpus
if view.highlighted() e.preventDefault() view.choose(e) else view.hide(e) else $.noop() return
CoffeeScript
ichord/At.js
src/app.coffee
MIT
c374c9335f761b66ecb3dec4770a3f630e5bcb4e
5,250
https://github.com/ichord/At.js/blob/c374c9335f761b66ecb3dec4770a3f630e5bcb4e/src/app.coffee
152
159
ichord/At.js:src/app.coffee:4:completion
completion
if view.highlighted() e.preventDefault() view.choose(e) else
view.hide(e) else $.noop() return
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
c374c9335f761b66ecb3dec4770a3f630e5bcb4e
5,250
https://github.com/ichord/At.js/blob/c374c9335f761b66ecb3dec4770a3f630e5bcb4e/src/app.coffee
152
159
ichord/At.js:src/app.coffee:2:raw_corpus
raw_corpus
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
05e8b5e962bc8f973e2c5daf81f159b3977e3f7a
5,250
https://github.com/ichord/At.js/blob/05e8b5e962bc8f973e2c5daf81f159b3977e3f7a/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at ch...
// At.js can register multiple at char (flag) to every inputor such as "@" and ":" // Along with their own `settings` so that it works differently. // After register, we still can update their `settings` such as updating `data` // @param flag [String] at char (flag) // @param settings [Hash] the settings ({ reg: fun...
CoffeeScript
JavaScript
ichord/At.js
src/app.coffee
MIT
05e8b5e962bc8f973e2c5daf81f159b3977e3f7a
5,250
https://github.com/ichord/At.js/blob/05e8b5e962bc8f973e2c5daf81f159b3977e3f7a/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // At.js can register multiple at char (flag) to every inputor such as "@" and ":" // Along with their own `settings` so that it works differently. // After register, we still can update their `settings` such as updating `data` // @param flag [String] at char (fla...
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
JavaScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
05e8b5e962bc8f973e2c5daf81f159b3977e3f7a
5,250
https://github.com/ichord/At.js/blob/05e8b5e962bc8f973e2c5daf81f159b3977e3f7a/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:completion
completion
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
@isComposing = false .on 'keyup.atwhoInner', (e) => this.onKeyup(e) .on 'keydown.atwhoInner', (e) => this.onKeydown(e) .on 'blur.atwhoInner', (e) => if c = this.controller() c.expectedQueryCBId = null c.view.hide(e,c.getOpt("displayTimeout")) .on 'clic...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
05e8b5e962bc8f973e2c5daf81f159b3977e3f7a
5,250
https://github.com/ichord/At.js/blob/05e8b5e962bc8f973e2c5daf81f159b3977e3f7a/src/app.coffee
52
101
ichord/At.js:src/app.coffee:3:raw_corpus
raw_corpus
@$inputor.off '.atwhoInner' @$el.remove() dispatch: (e) -> c.lookUp(e) for _, c of @controllers onKeyup: (e) -> switch e.keyCode when KEY_CODE.ESC e.preventDefault() this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KE...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
05e8b5e962bc8f973e2c5daf81f159b3977e3f7a
5,250
https://github.com/ichord/At.js/blob/05e8b5e962bc8f973e2c5daf81f159b3977e3f7a/src/app.coffee
102
151
ichord/At.js:src/app.coffee:3:completion
completion
@$inputor.off '.atwhoInner' @$el.remove() dispatch: (e) -> c.lookUp(e) for _, c of @controllers onKeyup: (e) -> switch e.keyCode when KEY_CODE.ESC e.preventDefault() this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KE...
when KEY_CODE.ESC e.preventDefault() view.hide(e) when KEY_CODE.UP e.preventDefault() view.prev() when KEY_CODE.DOWN e.preventDefault() view.next() when KEY_CODE.P return if not e.ctrlKey e.preventDefault() view.prev() when ...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
05e8b5e962bc8f973e2c5daf81f159b3977e3f7a
5,250
https://github.com/ichord/At.js/blob/05e8b5e962bc8f973e2c5daf81f159b3977e3f7a/src/app.coffee
102
151
ichord/At.js:src/app.coffee:4:raw_corpus
raw_corpus
view.hide(e) else $.noop() return
CoffeeScript
ichord/At.js
src/app.coffee
MIT
05e8b5e962bc8f973e2c5daf81f159b3977e3f7a
5,250
https://github.com/ichord/At.js/blob/05e8b5e962bc8f973e2c5daf81f159b3977e3f7a/src/app.coffee
152
155
ichord/At.js:src/app.coffee:2:raw_corpus
raw_corpus
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
9d81a7883fb304ab3a371db81524b08369a70be7
5,250
https://github.com/ichord/At.js/blob/9d81a7883fb304ab3a371db81524b08369a70be7/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at ch...
// At.js can register multiple at char (flag) to every inputor such as "@" and ":" // Along with their own `settings` so that it works differently. // After register, we still can update their `settings` such as updating `data` // @param flag [String] at char (flag) // @param settings [Hash] the settings ({ reg: fun...
CoffeeScript
JavaScript
ichord/At.js
src/app.coffee
MIT
9d81a7883fb304ab3a371db81524b08369a70be7
5,250
https://github.com/ichord/At.js/blob/9d81a7883fb304ab3a371db81524b08369a70be7/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // At.js can register multiple at char (flag) to every inputor such as "@" and ":" // Along with their own `settings` so that it works differently. // After register, we still can update their `settings` such as updating `data` // @param flag [String] at char (fla...
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
JavaScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
9d81a7883fb304ab3a371db81524b08369a70be7
5,250
https://github.com/ichord/At.js/blob/9d81a7883fb304ab3a371db81524b08369a70be7/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:completion
completion
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
@isComposing = false .on 'keyup.atwhoInner', (e) => this.onKeyup(e) .on 'keydown.atwhoInner', (e) => this.onKeydown(e) .on 'scroll.atwhoInner', (e) => this.controller()?.view.hide(e) .on 'blur.atwhoInner', (e) => if c = this.controller() c.expectedQueryC...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
9d81a7883fb304ab3a371db81524b08369a70be7
5,250
https://github.com/ichord/At.js/blob/9d81a7883fb304ab3a371db81524b08369a70be7/src/app.coffee
52
101
ichord/At.js:src/app.coffee:3:raw_corpus
raw_corpus
switch e.keyCode when KEY_CODE.ESC e.preventDefault() this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ctrlKey else this.dispatch e # coffeescript will return ev...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
9d81a7883fb304ab3a371db81524b08369a70be7
5,250
https://github.com/ichord/At.js/blob/9d81a7883fb304ab3a371db81524b08369a70be7/src/app.coffee
102
148
ichord/At.js:src/app.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript switch e.keyCode when KEY_CODE.ESC e.preventDefault() this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ctrlKey else ...
var ref; switch (e.keyCode) { case KEY_CODE.ESC: e.preventDefault(); if ((ref = this.controller()) != null) { ref.view.hide(); } break; case KEY_CODE.DOWN: case KEY_CODE.UP: case KEY_CODE.CTRL: $.noop(); break; case KEY_CODE.P: case KEY_CODE.N: if (!e.ctrlKey) { this...
CoffeeScript
JavaScript
ichord/At.js
src/app.coffee
MIT
9d81a7883fb304ab3a371db81524b08369a70be7
5,250
https://github.com/ichord/At.js/blob/9d81a7883fb304ab3a371db81524b08369a70be7/src/app.coffee
102
148
ichord/At.js:src/app.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var ref; switch (e.keyCode) { case KEY_CODE.ESC: e.preventDefault(); if ((ref = this.controller()) != null) { ref.view.hide(); } break; case KEY_CODE.DOWN: case KEY_CODE.UP: case KEY_CODE.CTRL: $.noop(); break; case KEY_CODE...
switch e.keyCode when KEY_CODE.ESC e.preventDefault() this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ctrlKey else this.dispatch e # coffeescript will return ev...
JavaScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
9d81a7883fb304ab3a371db81524b08369a70be7
5,250
https://github.com/ichord/At.js/blob/9d81a7883fb304ab3a371db81524b08369a70be7/src/app.coffee
102
148
ichord/At.js:src/app.coffee:3:completion
completion
switch e.keyCode when KEY_CODE.ESC e.preventDefault() this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ctrlKey else this.dispatch e # coffeescript will return ev...
view.prev() when KEY_CODE.DOWN e.preventDefault() view.next() when KEY_CODE.P return if not e.ctrlKey e.preventDefault() view.prev() when KEY_CODE.N return if not e.ctrlKey e.preventDefault() view.next() when KEY_CODE.TAB, KEY_CODE....
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
9d81a7883fb304ab3a371db81524b08369a70be7
5,250
https://github.com/ichord/At.js/blob/9d81a7883fb304ab3a371db81524b08369a70be7/src/app.coffee
102
148
ichord/At.js:src/app.coffee:2:raw_corpus
raw_corpus
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
89219c3f4fff5846570afd640c5c34c7c7603a81
5,250
https://github.com/ichord/At.js/blob/89219c3f4fff5846570afd640c5c34c7c7603a81/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:completion
completion
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
@isComposing = false .on 'keyup.atwhoInner', (e) => this.onKeyup(e) .on 'keydown.atwhoInner', (e) => this.onKeydown(e) .on 'scroll.atwhoInner', (e) => this.controller()?.view.hide(e) .on 'blur.atwhoInner', (e) => c.view.hide(e,c.getOpt("displayTimeout")) if c = th...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
89219c3f4fff5846570afd640c5c34c7c7603a81
5,250
https://github.com/ichord/At.js/blob/89219c3f4fff5846570afd640c5c34c7c7603a81/src/app.coffee
52
101
ichord/At.js:src/app.coffee:3:raw_corpus
raw_corpus
e.preventDefault() this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ctrlKey else this.dispatch e # coffeescript will return everywhere!! return onKeydown: (e) -> # ...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
89219c3f4fff5846570afd640c5c34c7c7603a81
5,250
https://github.com/ichord/At.js/blob/89219c3f4fff5846570afd640c5c34c7c7603a81/src/app.coffee
102
146
ichord/At.js:src/app.coffee:3:completion
completion
e.preventDefault() this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ctrlKey else this.dispatch e # coffeescript will return everywhere!! return onKeydown: (e) -> # ...
when KEY_CODE.DOWN e.preventDefault() view.next() when KEY_CODE.P return if not e.ctrlKey e.preventDefault() view.prev() when KEY_CODE.N return if not e.ctrlKey e.preventDefault() view.next() when KEY_CODE.TAB, KEY_CODE.ENTER, KEY_CODE.SP...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
89219c3f4fff5846570afd640c5c34c7c7603a81
5,250
https://github.com/ichord/At.js/blob/89219c3f4fff5846570afd640c5c34c7c7603a81/src/app.coffee
102
146
ichord/At.js:src/app.coffee:3:raw_corpus
raw_corpus
e.preventDefault() this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ctrlKey else this.dispatch e # coffeescript will return everywhere!! return onKeydown: (e) -> # ...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
886613f3b5aebfcfdf3ffdcdbbef434e4a17eb4d
5,250
https://github.com/ichord/At.js/blob/886613f3b5aebfcfdf3ffdcdbbef434e4a17eb4d/src/app.coffee
102
145
ichord/At.js:src/app.coffee:3:completion
completion
e.preventDefault() this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ctrlKey else this.dispatch e # coffeescript will return everywhere!! return onKeydown: (e) -> # ...
when KEY_CODE.DOWN e.preventDefault() view.next() when KEY_CODE.P return if not e.ctrlKey e.preventDefault() view.prev() when KEY_CODE.N return if not e.ctrlKey e.preventDefault() view.next() when KEY_CODE.TAB, KEY_CODE.ENTER, KEY_CODE.SP...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
886613f3b5aebfcfdf3ffdcdbbef434e4a17eb4d
5,250
https://github.com/ichord/At.js/blob/886613f3b5aebfcfdf3ffdcdbbef434e4a17eb4d/src/app.coffee
102
145
ichord/At.js:src/app.coffee:1:raw_corpus
raw_corpus
class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setupRootElement() this.listen() createContainer: (doc) -> @$el?.remove() $ doc.body .append @$el =...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
6567af98a74758a56e0aca2915a6e931f795d697
5,250
https://github.com/ichord/At.js/blob/6567af98a74758a56e0aca2915a6e931f795d697/src/app.coffee
2
51
ichord/At.js:src/app.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setupRootElement() this.listen() createContainer: (doc) ...
var App; App = class App { // @param inputor [HTML DOM Object] `input` or `textarea` constructor(inputor) { this.currentFlag = null; this.controllers = {}; this.aliasMaps = {}; this.$inputor = $(inputor); this.setupRootElement(); this.listen(); } createContainer(doc) { var ref; ...
CoffeeScript
JavaScript
ichord/At.js
src/app.coffee
MIT
6567af98a74758a56e0aca2915a6e931f795d697
5,250
https://github.com/ichord/At.js/blob/6567af98a74758a56e0aca2915a6e931f795d697/src/app.coffee
2
51
ichord/At.js:src/app.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var App; App = class App { // @param inputor [HTML DOM Object] `input` or `textarea` constructor(inputor) { this.currentFlag = null; this.controllers = {}; this.aliasMaps = {}; this.$inputor = $(inputor); this.setupRootElement(); this.l...
class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setupRootElement() this.listen() createContainer: (doc) -> @$el?.remove() $ doc.body .append @$el =...
JavaScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
6567af98a74758a56e0aca2915a6e931f795d697
5,250
https://github.com/ichord/At.js/blob/6567af98a74758a56e0aca2915a6e931f795d697/src/app.coffee
2
51
ichord/At.js:src/app.coffee:1:completion
completion
class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setupRootElement() this.listen() createContainer: (doc) -> @$el?.remove() $ doc.body .append @$el =...
try @iframe = @window.frameElement catch error @iframe = null throw new Error """ iframe auto-discovery is failed. Please use `setIframe` to set the target iframe manually. """ # throws error in cross-domain iframes this.createContainer if @iframeAsR...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
6567af98a74758a56e0aca2915a6e931f795d697
5,250
https://github.com/ichord/At.js/blob/6567af98a74758a56e0aca2915a6e931f795d697/src/app.coffee
2
51
ichord/At.js:src/app.coffee:2:raw_corpus
raw_corpus
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
6567af98a74758a56e0aca2915a6e931f795d697
5,250
https://github.com/ichord/At.js/blob/6567af98a74758a56e0aca2915a6e931f795d697/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at ch...
// At.js can register multiple at char (flag) to every inputor such as "@" and ":" // Along with their own `settings` so that it works differently. // After register, we still can update their `settings` such as updating `data` // @param flag [String] at char (flag) // @param settings [Hash] the settings ({ reg: fun...
CoffeeScript
JavaScript
ichord/At.js
src/app.coffee
MIT
6567af98a74758a56e0aca2915a6e931f795d697
5,250
https://github.com/ichord/At.js/blob/6567af98a74758a56e0aca2915a6e931f795d697/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // At.js can register multiple at char (flag) to every inputor such as "@" and ":" // Along with their own `settings` so that it works differently. // After register, we still can update their `settings` such as updating `data` // @param flag [String] at char (fla...
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
JavaScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
6567af98a74758a56e0aca2915a6e931f795d697
5,250
https://github.com/ichord/At.js/blob/6567af98a74758a56e0aca2915a6e931f795d697/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:completion
completion
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
.on 'keyup.atwhoInner', (e) => this.onKeyup(e) .on 'keydown.atwhoInner', (e) => this.onKeydown(e) .on 'scroll.atwhoInner', (e) => this.controller()?.view.hide(e) .on 'blur.atwhoInner', (e) => c.view.hide(e,c.getOpt("displayTimeout")) if c = this.controller() .on '...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
6567af98a74758a56e0aca2915a6e931f795d697
5,250
https://github.com/ichord/At.js/blob/6567af98a74758a56e0aca2915a6e931f795d697/src/app.coffee
52
101
ichord/At.js:src/app.coffee:3:raw_corpus
raw_corpus
this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ctrlKey else this.dispatch e # coffeescript will return everywhere!! return onKeydown: (e) -> # return if not (view = this....
CoffeeScript
ichord/At.js
src/app.coffee
MIT
6567af98a74758a56e0aca2915a6e931f795d697
5,250
https://github.com/ichord/At.js/blob/6567af98a74758a56e0aca2915a6e931f795d697/src/app.coffee
102
144
ichord/At.js:src/app.coffee:3:completion
completion
this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ctrlKey else this.dispatch e # coffeescript will return everywhere!! return onKeydown: (e) -> # return if not (view = this....
when KEY_CODE.DOWN e.preventDefault() view.next() when KEY_CODE.P return if not e.ctrlKey e.preventDefault() view.prev() when KEY_CODE.N return if not e.ctrlKey e.preventDefault() view.next() when KEY_CODE.TAB, KEY_CODE.ENTER, KEY_CODE.SP...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
6567af98a74758a56e0aca2915a6e931f795d697
5,250
https://github.com/ichord/At.js/blob/6567af98a74758a56e0aca2915a6e931f795d697/src/app.coffee
102
144
ichord/At.js:src/app.coffee:3:raw_corpus
raw_corpus
this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ctrlKey else this.dispatch e # coffeescript will return everywhere!! return onKeydown: (e) -> # return if not (view = this....
CoffeeScript
ichord/At.js
src/app.coffee
MIT
0132259fe93147a8f8a7f2f42620b6e14dac0925
5,250
https://github.com/ichord/At.js/blob/0132259fe93147a8f8a7f2f42620b6e14dac0925/src/app.coffee
102
141
ichord/At.js:src/app.coffee:3:completion
completion
this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ctrlKey else this.dispatch e # coffeescript will return everywhere!! return onKeydown: (e) -> # return if not (view = this....
view.prev() when KEY_CODE.DOWN e.preventDefault() view.next() when KEY_CODE.P return if not e.ctrlKey e.preventDefault() view.prev() when KEY_CODE.N return if not e.ctrlKey e.preventDefault() view.next() when KEY_CODE.TAB, KEY_CODE....
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
0132259fe93147a8f8a7f2f42620b6e14dac0925
5,250
https://github.com/ichord/At.js/blob/0132259fe93147a8f8a7f2f42620b6e14dac0925/src/app.coffee
102
141
ichord/At.js:src/app.coffee:2:raw_corpus
raw_corpus
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
af9e610a0dfb9fd3d05e3a841cf20f83285be2e6
5,250
https://github.com/ichord/At.js/blob/af9e610a0dfb9fd3d05e3a841cf20f83285be2e6/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at ch...
// At.js can register multiple at char (flag) to every inputor such as "@" and ":" // Along with their own `settings` so that it works differently. // After register, we still can update their `settings` such as updating `data` // @param flag [String] at char (flag) // @param settings [Hash] the settings ({ reg: fun...
CoffeeScript
JavaScript
ichord/At.js
src/app.coffee
MIT
af9e610a0dfb9fd3d05e3a841cf20f83285be2e6
5,250
https://github.com/ichord/At.js/blob/af9e610a0dfb9fd3d05e3a841cf20f83285be2e6/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // At.js can register multiple at char (flag) to every inputor such as "@" and ":" // Along with their own `settings` so that it works differently. // After register, we still can update their `settings` such as updating `data` // @param flag [String] at char (fla...
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
JavaScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
af9e610a0dfb9fd3d05e3a841cf20f83285be2e6
5,250
https://github.com/ichord/At.js/blob/af9e610a0dfb9fd3d05e3a841cf20f83285be2e6/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:completion
completion
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
.on 'keyup.atwhoInner', (e) => this.onKeyup(e) .on 'keydown.atwhoInner', (e) => this.onKeydown(e) .on 'scroll.atwhoInner', (e) => this.controller()?.view.hide(e) .on 'blur.atwhoInner', (e) => c.view.hide(e,c.getOpt("displayTimeout")) if c = this.controller() .on '...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
af9e610a0dfb9fd3d05e3a841cf20f83285be2e6
5,250
https://github.com/ichord/At.js/blob/af9e610a0dfb9fd3d05e3a841cf20f83285be2e6/src/app.coffee
52
101
ichord/At.js:src/app.coffee:3:raw_corpus
raw_corpus
else this.setContextFor c.at if c.lookUp e onKeyup: (e) -> switch e.keyCode when KEY_CODE.ESC e.preventDefault() this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ct...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
af9e610a0dfb9fd3d05e3a841cf20f83285be2e6
5,250
https://github.com/ichord/At.js/blob/af9e610a0dfb9fd3d05e3a841cf20f83285be2e6/src/app.coffee
102
148
ichord/At.js:src/app.coffee:3:completion
completion
else this.setContextFor c.at if c.lookUp e onKeyup: (e) -> switch e.keyCode when KEY_CODE.ESC e.preventDefault() this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ct...
e.preventDefault() view.hide(e) when KEY_CODE.UP e.preventDefault() view.prev() when KEY_CODE.DOWN e.preventDefault() view.next() when KEY_CODE.P return if not e.ctrlKey e.preventDefault() view.prev() when KEY_CODE.N return ...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
af9e610a0dfb9fd3d05e3a841cf20f83285be2e6
5,250
https://github.com/ichord/At.js/blob/af9e610a0dfb9fd3d05e3a841cf20f83285be2e6/src/app.coffee
102
148
ichord/At.js:src/app.coffee:1:raw_corpus
raw_corpus
class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setupRootElement() this.listen() createContainer: (doc) -> @$el?.remove() $ doc.body .append @$el =...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
4c1048b7673b48ca6d458aea1f916c1acf29a72b
5,250
https://github.com/ichord/At.js/blob/4c1048b7673b48ca6d458aea1f916c1acf29a72b/src/app.coffee
2
51
ichord/At.js:src/app.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setupRootElement() this.listen() createContainer: (doc) ...
var App; App = class App { // @param inputor [HTML DOM Object] `input` or `textarea` constructor(inputor) { this.currentFlag = null; this.controllers = {}; this.aliasMaps = {}; this.$inputor = $(inputor); this.setupRootElement(); this.listen(); } createContainer(doc) { var ref; ...
CoffeeScript
JavaScript
ichord/At.js
src/app.coffee
MIT
4c1048b7673b48ca6d458aea1f916c1acf29a72b
5,250
https://github.com/ichord/At.js/blob/4c1048b7673b48ca6d458aea1f916c1acf29a72b/src/app.coffee
2
51
ichord/At.js:src/app.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var App; App = class App { // @param inputor [HTML DOM Object] `input` or `textarea` constructor(inputor) { this.currentFlag = null; this.controllers = {}; this.aliasMaps = {}; this.$inputor = $(inputor); this.setupRootElement(); this.l...
class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setupRootElement() this.listen() createContainer: (doc) -> @$el?.remove() $ doc.body .append @$el =...
JavaScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
4c1048b7673b48ca6d458aea1f916c1acf29a72b
5,250
https://github.com/ichord/At.js/blob/4c1048b7673b48ca6d458aea1f916c1acf29a72b/src/app.coffee
2
51
ichord/At.js:src/app.coffee:1:completion
completion
class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setupRootElement() this.listen() createContainer: (doc) -> @$el?.remove() $ doc.body .append @$el =...
try @iframe = @window.frameElement catch error @iframe = null throw new Error """ iframe auto-discovery is failed. Please use `serIframe` to set the target iframe manually. """ # throws error in cross-domain iframes this.createContainer if @iframeAsR...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
4c1048b7673b48ca6d458aea1f916c1acf29a72b
5,250
https://github.com/ichord/At.js/blob/4c1048b7673b48ca6d458aea1f916c1acf29a72b/src/app.coffee
2
51
ichord/At.js:src/app.coffee:2:raw_corpus
raw_corpus
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
aa93bfe0eb8dc9f9a1727f870c7f66aaeed1e5d9
5,250
https://github.com/ichord/At.js/blob/aa93bfe0eb8dc9f9a1727f870c7f66aaeed1e5d9/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:completion
completion
# At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settings [Hash] the settings reg: ...
this.controller()?.view.hide(e) .on 'blur.atwhoInner', (e) => c.view.hide(e,c.getOpt("displayTimeout")) if c = this.controller() .on 'click.atwhoInner', (e) => this.dispatch e shutdown: -> for _, c of @controllers c.destroy() delete @controllers[_] @$inputor.off '.atwh...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
aa93bfe0eb8dc9f9a1727f870c7f66aaeed1e5d9
5,250
https://github.com/ichord/At.js/blob/aa93bfe0eb8dc9f9a1727f870c7f66aaeed1e5d9/src/app.coffee
52
101
ichord/At.js:src/app.coffee:3:raw_corpus
raw_corpus
when KEY_CODE.ESC e.preventDefault() this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ctrlKey else this.dispatch e # coffeescript will return everywhere!! return ...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
aa93bfe0eb8dc9f9a1727f870c7f66aaeed1e5d9
5,250
https://github.com/ichord/At.js/blob/aa93bfe0eb8dc9f9a1727f870c7f66aaeed1e5d9/src/app.coffee
102
143
ichord/At.js:src/app.coffee:3:completion
completion
when KEY_CODE.ESC e.preventDefault() this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ctrlKey else this.dispatch e # coffeescript will return everywhere!! return ...
e.preventDefault() view.prev() when KEY_CODE.DOWN e.preventDefault() view.next() when KEY_CODE.P return if not e.ctrlKey e.preventDefault() view.prev() when KEY_CODE.N return if not e.ctrlKey e.preventDefault() view.next() w...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
aa93bfe0eb8dc9f9a1727f870c7f66aaeed1e5d9
5,250
https://github.com/ichord/At.js/blob/aa93bfe0eb8dc9f9a1727f870c7f66aaeed1e5d9/src/app.coffee
102
143
ichord/At.js:src/app.coffee:3:raw_corpus
raw_corpus
when KEY_CODE.ESC e.preventDefault() this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ctrlKey else this.dispatch e # coffeescript will return everywhere!! return ...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
68037fee1b75aac5b194c782e7d6dcbc380ee142
5,250
https://github.com/ichord/At.js/blob/68037fee1b75aac5b194c782e7d6dcbc380ee142/src/app.coffee
102
142
ichord/At.js:src/app.coffee:3:completion
completion
when KEY_CODE.ESC e.preventDefault() this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ctrlKey else this.dispatch e # coffeescript will return everywhere!! return ...
when KEY_CODE.UP e.preventDefault() view.prev() when KEY_CODE.DOWN e.preventDefault() view.next() when KEY_CODE.P return if not e.ctrlKey e.preventDefault() view.prev() when KEY_CODE.N return if not e.ctrlKey e.preventDefault() ...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
68037fee1b75aac5b194c782e7d6dcbc380ee142
5,250
https://github.com/ichord/At.js/blob/68037fee1b75aac5b194c782e7d6dcbc380ee142/src/app.coffee
102
142
ichord/At.js:src/app.coffee:1:raw_corpus
raw_corpus
class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setupRootElement() this.listen() createContainer: (doc) -> if (@$el = $("#atwho-container", doc)).length == 0...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
eaf8d9e4db5dba89f1a3a3de8f75da47ac2cf007
5,250
https://github.com/ichord/At.js/blob/eaf8d9e4db5dba89f1a3a3de8f75da47ac2cf007/src/app.coffee
2
51
ichord/At.js:src/app.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setupRootElement() this.listen() createContainer: (doc) ...
var App; App = class App { // @param inputor [HTML DOM Object] `input` or `textarea` constructor(inputor) { this.currentFlag = null; this.controllers = {}; this.aliasMaps = {}; this.$inputor = $(inputor); this.setupRootElement(); this.listen(); } createContainer(doc) { if ((this.$e...
CoffeeScript
JavaScript
ichord/At.js
src/app.coffee
MIT
eaf8d9e4db5dba89f1a3a3de8f75da47ac2cf007
5,250
https://github.com/ichord/At.js/blob/eaf8d9e4db5dba89f1a3a3de8f75da47ac2cf007/src/app.coffee
2
51
ichord/At.js:src/app.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var App; App = class App { // @param inputor [HTML DOM Object] `input` or `textarea` constructor(inputor) { this.currentFlag = null; this.controllers = {}; this.aliasMaps = {}; this.$inputor = $(inputor); this.setupRootElement(); this.l...
class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setupRootElement() this.listen() createContainer: (doc) -> if (@$el = $("#atwho-container", doc)).length == 0...
JavaScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
eaf8d9e4db5dba89f1a3a3de8f75da47ac2cf007
5,250
https://github.com/ichord/At.js/blob/eaf8d9e4db5dba89f1a3a3de8f75da47ac2cf007/src/app.coffee
2
51
ichord/At.js:src/app.coffee:1:completion
completion
class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setupRootElement() this.listen() createContainer: (doc) -> if (@$el = $("#atwho-container", doc)).length == 0...
catch error @iframe = null throw new Error """ iframe auto-discovery is failed. Please use `serIframe` to set the target iframe manually. """ # throws error in cross-domain iframes if @iframeAsRoot = asRoot @$el?.remove() this.createContainer @document...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
eaf8d9e4db5dba89f1a3a3de8f75da47ac2cf007
5,250
https://github.com/ichord/At.js/blob/eaf8d9e4db5dba89f1a3a3de8f75da47ac2cf007/src/app.coffee
2
51
ichord/At.js:src/app.coffee:2:raw_corpus
raw_corpus
@currentFlag = at this # At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settin...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
eaf8d9e4db5dba89f1a3a3de8f75da47ac2cf007
5,250
https://github.com/ichord/At.js/blob/eaf8d9e4db5dba89f1a3a3de8f75da47ac2cf007/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:completion
completion
@currentFlag = at this # At.js can register multiple at char (flag) to every inputor such as "@" and ":" # Along with their own `settings` so that it works differently. # After register, we still can update their `settings` such as updating `data` # # @param flag [String] at char (flag) # @param settin...
.on 'keydown.atwhoInner', (e) => this.onKeydown(e) .on 'scroll.atwhoInner', (e) => this.controller()?.view.hide(e) .on 'blur.atwhoInner', (e) => c.view.hide(e,c.getOpt("displayTimeout")) if c = this.controller() .on 'click.atwhoInner', (e) => this.dispatch e shutdown...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
eaf8d9e4db5dba89f1a3a3de8f75da47ac2cf007
5,250
https://github.com/ichord/At.js/blob/eaf8d9e4db5dba89f1a3a3de8f75da47ac2cf007/src/app.coffee
52
101
ichord/At.js:src/app.coffee:3:raw_corpus
raw_corpus
onKeyup: (e) -> switch e.keyCode when KEY_CODE.ESC e.preventDefault() this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ctrlKey else this.dispatch e # coffees...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
eaf8d9e4db5dba89f1a3a3de8f75da47ac2cf007
5,250
https://github.com/ichord/At.js/blob/eaf8d9e4db5dba89f1a3a3de8f75da47ac2cf007/src/app.coffee
102
145
ichord/At.js:src/app.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript onKeyup: (e) -> switch e.keyCode when KEY_CODE.ESC e.preventDefault() this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e...
({ onKeyup: function(e) { var ref; switch (e.keyCode) { case KEY_CODE.ESC: e.preventDefault(); if ((ref = this.controller()) != null) { ref.view.hide(); } break; case KEY_CODE.DOWN: case KEY_CODE.UP: case KEY_CODE.CTRL: $.noop(); ...
CoffeeScript
JavaScript
ichord/At.js
src/app.coffee
MIT
eaf8d9e4db5dba89f1a3a3de8f75da47ac2cf007
5,250
https://github.com/ichord/At.js/blob/eaf8d9e4db5dba89f1a3a3de8f75da47ac2cf007/src/app.coffee
102
145
ichord/At.js:src/app.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript ({ onKeyup: function(e) { var ref; switch (e.keyCode) { case KEY_CODE.ESC: e.preventDefault(); if ((ref = this.controller()) != null) { ref.view.hide(); } break; case KEY_CODE.DOWN: case KEY_CODE...
onKeyup: (e) -> switch e.keyCode when KEY_CODE.ESC e.preventDefault() this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ctrlKey else this.dispatch e # coffees...
JavaScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
eaf8d9e4db5dba89f1a3a3de8f75da47ac2cf007
5,250
https://github.com/ichord/At.js/blob/eaf8d9e4db5dba89f1a3a3de8f75da47ac2cf007/src/app.coffee
102
145
ichord/At.js:src/app.coffee:3:completion
completion
onKeyup: (e) -> switch e.keyCode when KEY_CODE.ESC e.preventDefault() this.controller()?.view.hide() when KEY_CODE.DOWN, KEY_CODE.UP, KEY_CODE.CTRL $.noop() when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ctrlKey else this.dispatch e # coffees...
view.hide(e) when KEY_CODE.UP e.preventDefault() view.prev() when KEY_CODE.DOWN e.preventDefault() view.next() when KEY_CODE.P return if not e.ctrlKey e.preventDefault() view.prev() when KEY_CODE.N return if not e.ctrlKey e....
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
eaf8d9e4db5dba89f1a3a3de8f75da47ac2cf007
5,250
https://github.com/ichord/At.js/blob/eaf8d9e4db5dba89f1a3a3de8f75da47ac2cf007/src/app.coffee
102
145
ichord/At.js:src/app.coffee:1:raw_corpus
raw_corpus
class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setupRootElement() this.listen() createContainer: (doc) -> if (@$el = $("#atwho-container", doc)).length == 0...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
eb598d4487da4a09475c854c23722206dc124cbb
5,250
https://github.com/ichord/At.js/blob/eb598d4487da4a09475c854c23722206dc124cbb/src/app.coffee
2
51
ichord/At.js:src/app.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setupRootElement() this.listen() createContainer: (doc) ...
var App; App = class App { // @param inputor [HTML DOM Object] `input` or `textarea` constructor(inputor) { this.currentFlag = null; this.controllers = {}; this.aliasMaps = {}; this.$inputor = $(inputor); this.setupRootElement(); this.listen(); } createContainer(doc) { if ((this.$e...
CoffeeScript
JavaScript
ichord/At.js
src/app.coffee
MIT
eb598d4487da4a09475c854c23722206dc124cbb
5,250
https://github.com/ichord/At.js/blob/eb598d4487da4a09475c854c23722206dc124cbb/src/app.coffee
2
51
ichord/At.js:src/app.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var App; App = class App { // @param inputor [HTML DOM Object] `input` or `textarea` constructor(inputor) { this.currentFlag = null; this.controllers = {}; this.aliasMaps = {}; this.$inputor = $(inputor); this.setupRootElement(); this.l...
class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setupRootElement() this.listen() createContainer: (doc) -> if (@$el = $("#atwho-container", doc)).length == 0...
JavaScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
eb598d4487da4a09475c854c23722206dc124cbb
5,250
https://github.com/ichord/At.js/blob/eb598d4487da4a09475c854c23722206dc124cbb/src/app.coffee
2
51
ichord/At.js:src/app.coffee:1:completion
completion
class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setupRootElement() this.listen() createContainer: (doc) -> if (@$el = $("#atwho-container", doc)).length == 0...
catch error @iframe = null throw new Error """ iframe auto-discovery is failed. Please use `serIframe` to set the target iframe manually. """ # throws error in cross-domain iframes if @iframeStandalone = standalone @$el?.remove() this.createContainer @...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
eb598d4487da4a09475c854c23722206dc124cbb
5,250
https://github.com/ichord/At.js/blob/eb598d4487da4a09475c854c23722206dc124cbb/src/app.coffee
2
51
ichord/At.js:src/app.coffee:1:raw_corpus
raw_corpus
class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setIframe() this.listen() createContainer: (doc) -> if (@$el = $("#atwho-container", doc)).length == 0 ...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
ac213212f2d0d421896f8e490ec99698ed1d99f0
5,250
https://github.com/ichord/At.js/blob/ac213212f2d0d421896f8e490ec99698ed1d99f0/src/app.coffee
2
51
ichord/At.js:src/app.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setIframe() this.listen() createContainer: (doc) -> ...
var App; App = class App { // @param inputor [HTML DOM Object] `input` or `textarea` constructor(inputor) { this.currentFlag = null; this.controllers = {}; this.aliasMaps = {}; this.$inputor = $(inputor); this.setIframe(); this.listen(); } createContainer(doc) { if ((this.$el = $("...
CoffeeScript
JavaScript
ichord/At.js
src/app.coffee
MIT
ac213212f2d0d421896f8e490ec99698ed1d99f0
5,250
https://github.com/ichord/At.js/blob/ac213212f2d0d421896f8e490ec99698ed1d99f0/src/app.coffee
2
51
ichord/At.js:src/app.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var App; App = class App { // @param inputor [HTML DOM Object] `input` or `textarea` constructor(inputor) { this.currentFlag = null; this.controllers = {}; this.aliasMaps = {}; this.$inputor = $(inputor); this.setIframe(); this.listen()...
class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setIframe() this.listen() createContainer: (doc) -> if (@$el = $("#atwho-container", doc)).length == 0 ...
JavaScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
ac213212f2d0d421896f8e490ec99698ed1d99f0
5,250
https://github.com/ichord/At.js/blob/ac213212f2d0d421896f8e490ec99698ed1d99f0/src/app.coffee
2
51
ichord/At.js:src/app.coffee:1:completion
completion
class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @currentFlag = null @controllers = {} @aliasMaps = {} @$inputor = $(inputor) this.setIframe() this.listen() createContainer: (doc) -> if (@$el = $("#atwho-container", doc)).length == 0 ...
@$el?.remove() this.createContainer @document else this.createContainer document controller: (at) -> if @aliasMaps[at] current = @controllers[@aliasMaps[at]] else for currentFlag, c of @controllers if currentFlag is at current = c break if current ...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
ac213212f2d0d421896f8e490ec99698ed1d99f0
5,250
https://github.com/ichord/At.js/blob/ac213212f2d0d421896f8e490ec99698ed1d99f0/src/app.coffee
2
51
ichord/At.js:src/app.coffee:2:raw_corpus
raw_corpus
# @param settings [Hash] the settings reg: (flag, setting) -> controller = @controllers[flag] ||= if @$inputor.is '[contentEditable]' new EditableController this, flag else new TextareaController this, flag # TODO: it will produce rubbish alias map, reduse this. @aliasMaps[sett...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
ac213212f2d0d421896f8e490ec99698ed1d99f0
5,250
https://github.com/ichord/At.js/blob/ac213212f2d0d421896f8e490ec99698ed1d99f0/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # @param settings [Hash] the settings reg: (flag, setting) -> controller = @controllers[flag] ||= if @$inputor.is '[contentEditable]' new EditableController this, flag else new TextareaController this, flag # TODO: it will pr...
// @param settings [Hash] the settings ({ reg: function(flag, setting) { var base, controller; controller = (base = this.controllers)[flag] || (base[flag] = this.$inputor.is('[contentEditable]') ? new EditableController(this, flag) : new TextareaController(this, flag)); if (setting.alias) { // TODO:...
CoffeeScript
JavaScript
ichord/At.js
src/app.coffee
MIT
ac213212f2d0d421896f8e490ec99698ed1d99f0
5,250
https://github.com/ichord/At.js/blob/ac213212f2d0d421896f8e490ec99698ed1d99f0/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // @param settings [Hash] the settings ({ reg: function(flag, setting) { var base, controller; controller = (base = this.controllers)[flag] || (base[flag] = this.$inputor.is('[contentEditable]') ? new EditableController(this, flag) : new TextareaControlle...
# @param settings [Hash] the settings reg: (flag, setting) -> controller = @controllers[flag] ||= if @$inputor.is '[contentEditable]' new EditableController this, flag else new TextareaController this, flag # TODO: it will produce rubbish alias map, reduse this. @aliasMaps[sett...
JavaScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
ac213212f2d0d421896f8e490ec99698ed1d99f0
5,250
https://github.com/ichord/At.js/blob/ac213212f2d0d421896f8e490ec99698ed1d99f0/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:completion
completion
# @param settings [Hash] the settings reg: (flag, setting) -> controller = @controllers[flag] ||= if @$inputor.is '[contentEditable]' new EditableController this, flag else new TextareaController this, flag # TODO: it will produce rubbish alias map, reduse this. @aliasMaps[sett...
shutdown: -> for _, c of @controllers c.destroy() delete @controllers[_] @$inputor.off '.atwhoInner' @$el.remove() dispatch: (e) -> $.map @controllers, (c) => if delay = c.getOpt('delay') clearTimeout @delayedCallback @delayedCallback = setTimeout(=> this.s...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
ac213212f2d0d421896f8e490ec99698ed1d99f0
5,250
https://github.com/ichord/At.js/blob/ac213212f2d0d421896f8e490ec99698ed1d99f0/src/app.coffee
52
101
ichord/At.js:src/app.coffee:3:raw_corpus
raw_corpus
when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ctrlKey else this.dispatch e # coffeescript will return everywhere!! return onKeydown: (e) -> # return if not (view = this.controller().view).visible() view = this.controller()?.view return if not (view and view.visible())...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
ac213212f2d0d421896f8e490ec99698ed1d99f0
5,250
https://github.com/ichord/At.js/blob/ac213212f2d0d421896f8e490ec99698ed1d99f0/src/app.coffee
102
137
ichord/At.js:src/app.coffee:3:completion
completion
when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ctrlKey else this.dispatch e # coffeescript will return everywhere!! return onKeydown: (e) -> # return if not (view = this.controller().view).visible() view = this.controller()?.view return if not (view and view.visible())...
when KEY_CODE.DOWN e.preventDefault() view.next() when KEY_CODE.P return if not e.ctrlKey e.preventDefault() view.prev() when KEY_CODE.N return if not e.ctrlKey e.preventDefault() view.next() when KEY_CODE.TAB, KEY_CODE.ENTER retu...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
ac213212f2d0d421896f8e490ec99698ed1d99f0
5,250
https://github.com/ichord/At.js/blob/ac213212f2d0d421896f8e490ec99698ed1d99f0/src/app.coffee
102
137
ichord/At.js:src/app.coffee:2:raw_corpus
raw_corpus
# @param settings [Hash] the settings reg: (flag, setting) -> controller = @controllers[flag] ||= if @$inputor.is '[contentEditable]' new EditableController this, flag else new TextareaController this, flag # TODO: it will produce rubbish alias map, reduse this. @aliasMaps[sett...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
dea7f905a54abd351d68c768fd3d6bd4fc281e9c
5,250
https://github.com/ichord/At.js/blob/dea7f905a54abd351d68c768fd3d6bd4fc281e9c/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # @param settings [Hash] the settings reg: (flag, setting) -> controller = @controllers[flag] ||= if @$inputor.is '[contentEditable]' new EditableController this, flag else new TextareaController this, flag # TODO: it will pr...
// @param settings [Hash] the settings ({ reg: function(flag, setting) { var base, controller; controller = (base = this.controllers)[flag] || (base[flag] = this.$inputor.is('[contentEditable]') ? new EditableController(this, flag) : new TextareaController(this, flag)); if (setting.alias) { // TODO:...
CoffeeScript
JavaScript
ichord/At.js
src/app.coffee
MIT
dea7f905a54abd351d68c768fd3d6bd4fc281e9c
5,250
https://github.com/ichord/At.js/blob/dea7f905a54abd351d68c768fd3d6bd4fc281e9c/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // @param settings [Hash] the settings ({ reg: function(flag, setting) { var base, controller; controller = (base = this.controllers)[flag] || (base[flag] = this.$inputor.is('[contentEditable]') ? new EditableController(this, flag) : new TextareaControlle...
# @param settings [Hash] the settings reg: (flag, setting) -> controller = @controllers[flag] ||= if @$inputor.is '[contentEditable]' new EditableController this, flag else new TextareaController this, flag # TODO: it will produce rubbish alias map, reduse this. @aliasMaps[sett...
JavaScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
dea7f905a54abd351d68c768fd3d6bd4fc281e9c
5,250
https://github.com/ichord/At.js/blob/dea7f905a54abd351d68c768fd3d6bd4fc281e9c/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:completion
completion
# @param settings [Hash] the settings reg: (flag, setting) -> controller = @controllers[flag] ||= if @$inputor.is '[contentEditable]' new EditableController this, flag else new TextareaController this, flag # TODO: it will produce rubbish alias map, reduse this. @aliasMaps[sett...
shutdown: -> for _, c of @controllers c.destroy() delete @controllers[_] @$inputor.off '.atwhoInner' @$el.remove() dispatch: (e) -> $.map @controllers, (c) => if delay = c.getOpt('delay') clearTimeout @delayedCallback @delayedCallback = setTimeout(=> this.s...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
dea7f905a54abd351d68c768fd3d6bd4fc281e9c
5,250
https://github.com/ichord/At.js/blob/dea7f905a54abd351d68c768fd3d6bd4fc281e9c/src/app.coffee
52
101
ichord/At.js:src/app.coffee:1:raw_corpus
raw_corpus
class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @current_flag = null @controllers = {} @alias_maps = {} @$inputor = $(inputor) this.setIframe() this.listen() createContainer: (doc) -> if (@$el = $("#atwho-container", doc)).length == 0 ...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
b05d51a77ef9a02aa2dbcd72543ead335a5cb5a0
5,250
https://github.com/ichord/At.js/blob/b05d51a77ef9a02aa2dbcd72543ead335a5cb5a0/src/app.coffee
2
51
ichord/At.js:src/app.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @current_flag = null @controllers = {} @alias_maps = {} @$inputor = $(inputor) this.setIframe() this.listen() createContainer: (doc) -> ...
var App; App = class App { // @param inputor [HTML DOM Object] `input` or `textarea` constructor(inputor) { this.current_flag = null; this.controllers = {}; this.alias_maps = {}; this.$inputor = $(inputor); this.setIframe(); this.listen(); } createContainer(doc) { if ((this.$el = $...
CoffeeScript
JavaScript
ichord/At.js
src/app.coffee
MIT
b05d51a77ef9a02aa2dbcd72543ead335a5cb5a0
5,250
https://github.com/ichord/At.js/blob/b05d51a77ef9a02aa2dbcd72543ead335a5cb5a0/src/app.coffee
2
51
ichord/At.js:src/app.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var App; App = class App { // @param inputor [HTML DOM Object] `input` or `textarea` constructor(inputor) { this.current_flag = null; this.controllers = {}; this.alias_maps = {}; this.$inputor = $(inputor); this.setIframe(); this.listen...
class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @current_flag = null @controllers = {} @alias_maps = {} @$inputor = $(inputor) this.setIframe() this.listen() createContainer: (doc) -> if (@$el = $("#atwho-container", doc)).length == 0 ...
JavaScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
b05d51a77ef9a02aa2dbcd72543ead335a5cb5a0
5,250
https://github.com/ichord/At.js/blob/b05d51a77ef9a02aa2dbcd72543ead335a5cb5a0/src/app.coffee
2
51
ichord/At.js:src/app.coffee:1:completion
completion
class App # @param inputor [HTML DOM Object] `input` or `textarea` constructor: (inputor) -> @current_flag = null @controllers = {} @alias_maps = {} @$inputor = $(inputor) this.setIframe() this.listen() createContainer: (doc) -> if (@$el = $("#atwho-container", doc)).length == 0 ...
@$el?.remove() this.createContainer @document else this.createContainer document controller: (at) -> if @alias_maps[at] current = @controllers[@alias_maps[at]] else for current_flag, c of @controllers if current_flag is at current = c break if curr...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
b05d51a77ef9a02aa2dbcd72543ead335a5cb5a0
5,250
https://github.com/ichord/At.js/blob/b05d51a77ef9a02aa2dbcd72543ead335a5cb5a0/src/app.coffee
2
51
ichord/At.js:src/app.coffee:2:raw_corpus
raw_corpus
# @param settings [Hash] the settings reg: (flag, setting) -> controller = @controllers[flag] ||= if @$inputor.is '[contentEditable]' new EditableController this, flag else new TextareaController this, flag # TODO: it will produce rubbish alias map, reduse this. @alias_maps[set...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
b05d51a77ef9a02aa2dbcd72543ead335a5cb5a0
5,250
https://github.com/ichord/At.js/blob/b05d51a77ef9a02aa2dbcd72543ead335a5cb5a0/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # @param settings [Hash] the settings reg: (flag, setting) -> controller = @controllers[flag] ||= if @$inputor.is '[contentEditable]' new EditableController this, flag else new TextareaController this, flag # TODO: it will pr...
// @param settings [Hash] the settings ({ reg: function(flag, setting) { var base, controller; controller = (base = this.controllers)[flag] || (base[flag] = this.$inputor.is('[contentEditable]') ? new EditableController(this, flag) : new TextareaController(this, flag)); if (setting.alias) { // TODO:...
CoffeeScript
JavaScript
ichord/At.js
src/app.coffee
MIT
b05d51a77ef9a02aa2dbcd72543ead335a5cb5a0
5,250
https://github.com/ichord/At.js/blob/b05d51a77ef9a02aa2dbcd72543ead335a5cb5a0/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // @param settings [Hash] the settings ({ reg: function(flag, setting) { var base, controller; controller = (base = this.controllers)[flag] || (base[flag] = this.$inputor.is('[contentEditable]') ? new EditableController(this, flag) : new TextareaControlle...
# @param settings [Hash] the settings reg: (flag, setting) -> controller = @controllers[flag] ||= if @$inputor.is '[contentEditable]' new EditableController this, flag else new TextareaController this, flag # TODO: it will produce rubbish alias map, reduse this. @alias_maps[set...
JavaScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
b05d51a77ef9a02aa2dbcd72543ead335a5cb5a0
5,250
https://github.com/ichord/At.js/blob/b05d51a77ef9a02aa2dbcd72543ead335a5cb5a0/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:completion
completion
# @param settings [Hash] the settings reg: (flag, setting) -> controller = @controllers[flag] ||= if @$inputor.is '[contentEditable]' new EditableController this, flag else new TextareaController this, flag # TODO: it will produce rubbish alias map, reduse this. @alias_maps[set...
shutdown: -> for _, c of @controllers c.destroy() delete @controllers[_] @$inputor.off '.atwhoInner' @$el.remove() dispatch: (e) -> $.map @controllers, (c) => if delay = c.get_opt('delay') clearTimeout @delayedCallback @delayedCallback = setTimeout(=> this....
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
b05d51a77ef9a02aa2dbcd72543ead335a5cb5a0
5,250
https://github.com/ichord/At.js/blob/b05d51a77ef9a02aa2dbcd72543ead335a5cb5a0/src/app.coffee
52
101
ichord/At.js:src/app.coffee:3:raw_corpus
raw_corpus
when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ctrlKey else this.dispatch e # coffeescript will return everywhere!! return on_keydown: (e) -> # return if not (view = this.controller().view).visible() view = this.controller()?.view return if not (view and view.visible()...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
b05d51a77ef9a02aa2dbcd72543ead335a5cb5a0
5,250
https://github.com/ichord/At.js/blob/b05d51a77ef9a02aa2dbcd72543ead335a5cb5a0/src/app.coffee
102
137
ichord/At.js:src/app.coffee:3:completion
completion
when KEY_CODE.P, KEY_CODE.N this.dispatch e if not e.ctrlKey else this.dispatch e # coffeescript will return everywhere!! return on_keydown: (e) -> # return if not (view = this.controller().view).visible() view = this.controller()?.view return if not (view and view.visible()...
when KEY_CODE.DOWN e.preventDefault() view.next() when KEY_CODE.P return if not e.ctrlKey e.preventDefault() view.prev() when KEY_CODE.N return if not e.ctrlKey e.preventDefault() view.next() when KEY_CODE.TAB, KEY_CODE.ENTER retu...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
b05d51a77ef9a02aa2dbcd72543ead335a5cb5a0
5,250
https://github.com/ichord/At.js/blob/b05d51a77ef9a02aa2dbcd72543ead335a5cb5a0/src/app.coffee
102
137
ichord/At.js:src/app.coffee:2:raw_corpus
raw_corpus
# @param settings [Hash] the settings reg: (flag, setting) -> controller = @controllers[flag] ||= new Controller(this, flag) # TODO: it will produce rubbish alias map, reduse this. @alias_maps[setting.alias] = flag if setting.alias controller.init setting this # binding jQuery events of `inputo...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
b61bfdc320a698afee3854de3567bdbb94723e89
5,250
https://github.com/ichord/At.js/blob/b61bfdc320a698afee3854de3567bdbb94723e89/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # @param settings [Hash] the settings reg: (flag, setting) -> controller = @controllers[flag] ||= new Controller(this, flag) # TODO: it will produce rubbish alias map, reduse this. @alias_maps[setting.alias] = flag if setting.alias controller.in...
// @param settings [Hash] the settings ({ reg: function(flag, setting) { var base, controller; controller = (base = this.controllers)[flag] || (base[flag] = new Controller(this, flag)); if (setting.alias) { // TODO: it will produce rubbish alias map, reduse this. this.alias_maps[setting.alias]...
CoffeeScript
JavaScript
ichord/At.js
src/app.coffee
MIT
b61bfdc320a698afee3854de3567bdbb94723e89
5,250
https://github.com/ichord/At.js/blob/b61bfdc320a698afee3854de3567bdbb94723e89/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // @param settings [Hash] the settings ({ reg: function(flag, setting) { var base, controller; controller = (base = this.controllers)[flag] || (base[flag] = new Controller(this, flag)); if (setting.alias) { // TODO: it will produce rubbish alias...
# @param settings [Hash] the settings reg: (flag, setting) -> controller = @controllers[flag] ||= new Controller(this, flag) # TODO: it will produce rubbish alias map, reduse this. @alias_maps[setting.alias] = flag if setting.alias controller.init setting this # binding jQuery events of `inputo...
JavaScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
b61bfdc320a698afee3854de3567bdbb94723e89
5,250
https://github.com/ichord/At.js/blob/b61bfdc320a698afee3854de3567bdbb94723e89/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:completion
completion
# @param settings [Hash] the settings reg: (flag, setting) -> controller = @controllers[flag] ||= new Controller(this, flag) # TODO: it will produce rubbish alias map, reduse this. @alias_maps[setting.alias] = flag if setting.alias controller.init setting this # binding jQuery events of `inputo...
delete @controllers[_] @$inputor.off '.atwhoInner' @$el.remove() dispatch: -> $.map @controllers, (c) => if delay = c.get_opt('delay') clearTimeout @delayedCallback @delayedCallback = setTimeout(=> this.set_context_for c.at if c.look_up() , delay) else ...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
b61bfdc320a698afee3854de3567bdbb94723e89
5,250
https://github.com/ichord/At.js/blob/b61bfdc320a698afee3854de3567bdbb94723e89/src/app.coffee
52
101
ichord/At.js:src/app.coffee:3:raw_corpus
raw_corpus
# coffeescript will return everywhere!! return on_keydown: (e) -> # return if not (view = this.controller().view).visible() view = this.controller()?.view return if not (view and view.visible()) switch e.keyCode when KEY_CODE.ESC e.preventDefault() view.hide(e) when KE...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
b61bfdc320a698afee3854de3567bdbb94723e89
5,250
https://github.com/ichord/At.js/blob/b61bfdc320a698afee3854de3567bdbb94723e89/src/app.coffee
102
133
ichord/At.js:src/app.coffee:3:completion
completion
# coffeescript will return everywhere!! return on_keydown: (e) -> # return if not (view = this.controller().view).visible() view = this.controller()?.view return if not (view and view.visible()) switch e.keyCode when KEY_CODE.ESC e.preventDefault() view.hide(e) when KE...
view.next() when KEY_CODE.P return if not e.ctrlKey e.preventDefault() view.prev() when KEY_CODE.N return if not e.ctrlKey e.preventDefault() view.next() when KEY_CODE.TAB, KEY_CODE.ENTER return if not view.visible() e.preventDefault() ...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
b61bfdc320a698afee3854de3567bdbb94723e89
5,250
https://github.com/ichord/At.js/blob/b61bfdc320a698afee3854de3567bdbb94723e89/src/app.coffee
102
133
ichord/At.js:src/app.coffee:2:raw_corpus
raw_corpus
# @param settings [Hash] the settings reg: (flag, setting) -> controller = @controllers[flag] ||= new Controller(this, flag) # TODO: it will produce rubbish alias map, reduse this. @alias_maps[setting.alias] = flag if setting.alias controller.init setting this # binding jQuery events of `inputo...
CoffeeScript
ichord/At.js
src/app.coffee
MIT
c72ef440fcc855c58dba05da510caad22ea44f28
5,250
https://github.com/ichord/At.js/blob/c72ef440fcc855c58dba05da510caad22ea44f28/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # @param settings [Hash] the settings reg: (flag, setting) -> controller = @controllers[flag] ||= new Controller(this, flag) # TODO: it will produce rubbish alias map, reduse this. @alias_maps[setting.alias] = flag if setting.alias controller.in...
// @param settings [Hash] the settings ({ reg: function(flag, setting) { var base, controller; controller = (base = this.controllers)[flag] || (base[flag] = new Controller(this, flag)); if (setting.alias) { // TODO: it will produce rubbish alias map, reduse this. this.alias_maps[setting.alias]...
CoffeeScript
JavaScript
ichord/At.js
src/app.coffee
MIT
c72ef440fcc855c58dba05da510caad22ea44f28
5,250
https://github.com/ichord/At.js/blob/c72ef440fcc855c58dba05da510caad22ea44f28/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // @param settings [Hash] the settings ({ reg: function(flag, setting) { var base, controller; controller = (base = this.controllers)[flag] || (base[flag] = new Controller(this, flag)); if (setting.alias) { // TODO: it will produce rubbish alias...
# @param settings [Hash] the settings reg: (flag, setting) -> controller = @controllers[flag] ||= new Controller(this, flag) # TODO: it will produce rubbish alias map, reduse this. @alias_maps[setting.alias] = flag if setting.alias controller.init setting this # binding jQuery events of `inputo...
JavaScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
c72ef440fcc855c58dba05da510caad22ea44f28
5,250
https://github.com/ichord/At.js/blob/c72ef440fcc855c58dba05da510caad22ea44f28/src/app.coffee
52
101
ichord/At.js:src/app.coffee:2:completion
completion
# @param settings [Hash] the settings reg: (flag, setting) -> controller = @controllers[flag] ||= new Controller(this, flag) # TODO: it will produce rubbish alias map, reduse this. @alias_maps[setting.alias] = flag if setting.alias controller.init setting this # binding jQuery events of `inputo...
delete @controllers[_] @$inputor.off '.atwhoInner' @$el.remove() dispatch: -> $.map @controllers, (c) => if delay = c.get_opt('delay') clearTimeout @delayedCallback @delayedCallback = setTimeout(=> this.set_context_for c.at if c.look_up() , delay) else ...
CoffeeScript
CoffeeScript
ichord/At.js
src/app.coffee
MIT
c72ef440fcc855c58dba05da510caad22ea44f28
5,250
https://github.com/ichord/At.js/blob/c72ef440fcc855c58dba05da510caad22ea44f28/src/app.coffee
52
101