Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

[WIP]Feature turbolinks #65

Closed
wants to merge 4 commits into from

Conversation

patorash
Copy link

@patorash patorash commented Apr 7, 2017

No description provided.

$('body').css
overflow: ''
position: ''
$('[data-toggle="offcanvas"]').bootstrapOffcanvas()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line contains inconsistent indentation. Expected 4 got 2.


$(window).on 'resize', ->
$('.navbar-offcanvas.in').each ->
$(@).height('').removeClass 'in'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line contains inconsistent indentation. Expected 4 got 2.

elements.each -> new Offcanvas($(this))

$(window).on 'resize', ->
$('.navbar-offcanvas.in').each ->

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line contains inconsistent indentation. Expected 4 got 2.

return asSupport.length?

$.fn.bootstrapOffcanvas = ->
elements = this

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line contains inconsistent indentation. Expected 4 got 2.

#
# Checks if transform3d is available for us to use
_transformCheck: =>
el = document.createElement 'div'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line contains inconsistent indentation. Expected 4 got 2.

# Private: Transform checker
#
# Checks if transform3d is available for us to use
_transformCheck: =>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary fat arrow.


self = this
@element.on 'click', (e) ->
if !self.element.hasClass 'js-offcanvas-has-events'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line contains inconsistent indentation. Expected 4 got 2.

@patorash patorash closed this Apr 7, 2017
@patorash
Copy link
Author

patorash commented Apr 7, 2017

Sorry! I made a mistake.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants