From a30fc006bbc31f7ffa52a9f9068e67df3d19fe4e Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Wed, 6 Jan 2016 18:50:24 +1100 Subject: [PATCH] Update copyright and helper function names --- modules/system/assets/js/framework.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/system/assets/js/framework.js b/modules/system/assets/js/framework.js index 8b024de16..84549154e 100644 --- a/modules/system/assets/js/framework.js +++ b/modules/system/assets/js/framework.js @@ -2,7 +2,7 @@ * October CMS: front-end JavaScript framework * http://octobercms.com * ======================================================================== - * Copyright 2014 Alexey Bobkov, Samuel Georges + * Copyright 2016 Alexey Bobkov, Samuel Georges * * ======================================================================== */ @@ -68,7 +68,7 @@ if (window.jQuery === undefined) var data = [$form.serialize()] - $.each($el.parents('[data-request-data]').toArray().reverse(), function extendReque(){ + $.each($el.parents('[data-request-data]').toArray().reverse(), function extendRequest(){ data.push($.param(paramToObj('data-request-data', $(this).data('request-data')))) }) @@ -410,12 +410,12 @@ if (window.jQuery === undefined) }, interval) }) - $(document).on('submit', '[data-request]', function documentOnsubmit(){ + $(document).on('submit', '[data-request]', function documentOnSubmit(){ $(this).request() return false }) - $(window).on('beforeunload', function documentOnBeforeunload() { + $(window).on('beforeunload', function documentOnBeforeUnload() { window.ocUnloading = true })