Skip to content
Permalink
Browse files

Shortened vapour.document property to vapour.doc since .document wasn…

…'t being minified.
  • Loading branch information...
Paul Jackson Paul Jackson
Paul Jackson authored and Paul Jackson committed Sep 20, 2013
1 parent c32745e commit c8190a8373fc9aa996f8bb81108df0f398224c19
@@ -14,7 +14,7 @@ do ( $ = jQuery, window, undef = undefined ) ->
'/templates': "#{$homepath}/assets/templates"
'/deps': "#{$homepath}/deps"
'mode' : $mode
'document' : $(document)
'doc' : $(document)

getPath: (prty)->
res = if @hasOwnProperty(prty) then @[prty] else undef
@@ -7,7 +7,7 @@
###

do ($ = jQuery, window, vapour) ->
$document = vapour.document
$document = vapour.doc
$.ajaxSettings.cache = false

### internal core functions ###
@@ -7,7 +7,7 @@
###

do ($ = jQuery, window, vapour) ->
$document = vapour.document
$document = vapour.doc

$document.on "wb.timerpoke", ".wb-carousel", (event) ->
_sldr = $(this)
@@ -7,7 +7,7 @@
###

do ($ = jQuery, window, vapour) ->
$document = vapour.document
$document = vapour.doc
$.ajaxSettings.cache = false

$document.on "wb.timerpoke", "[data-ajax-after]", (event) ->
@@ -7,7 +7,7 @@
###

do ($ = jQuery, window, vapour) ->
$document = vapour.document
$document = vapour.doc
$.ajaxSettings.cache = false

$document.on "wb.timerpoke", "[data-ajax-append]", (event) ->
@@ -7,7 +7,7 @@
###

do ($ = jQuery, window, vapour) ->
$document = vapour.document
$document = vapour.doc
$.ajaxSettings.cache = false

$document.on "wb.timerpoke", "[data-ajax-before]", (event) ->
@@ -7,7 +7,7 @@
###

do( $ = jQuery, window, vapour) ->
$document = vapour.document
$document = vapour.doc

# Initialization
$document.on 'wb.timerpoke', '.wb-inview', (e)->
@@ -8,7 +8,7 @@ licence : wet-boew.github.io/wet-boew/License-en.html /
*/
(function( $, window, vapour ) {
"use strict";
var $document = vapour.document,
var $document = vapour.doc,
plugin = {
events: false,
selector: "[data-picture]",
@@ -7,7 +7,7 @@
###

do ($ = jQuery, window, vapour) ->
$document = vapour.document
$document = vapour.doc
$.ajaxSettings.cache = false

$document.on "wb.timerpoke", "[data-ajax-replace]", (event) ->
@@ -7,7 +7,7 @@
###

do ($ = jQuery, window, vapour) ->
$document = vapour.document
$document = vapour.doc

###
Lets leverage JS assigment deconstruction to reduce the code output
@@ -8,7 +8,7 @@ licence : wet-boew.github.io/wet-boew/License-en.html /
*/
(function( $, window, vapour ) {
"use strict";
var $document = vapour.document,
var $document = vapour.doc,
plugin = {
events: false,
selector: ".wb-toggle",

0 comments on commit c8190a8

Please sign in to comment.
You can’t perform that action at this time.